In my grid I have a drop down column
When I run the page and add a new row, the items in the drop down list selection are taken from the underlying grid datasource not its own separate datasource (so many items in the dropdown are dupliacted)
I need to assign a totally separate datasource in order to pick one of the items to enter into the underlying column in the grid
Using the above method doesnt seem to make sense since when would you ever use the grid as a datasource for the dropdown, they are usually a totally different dataset
Ive tried this
and trying to populate in the ItemDataBound event, but the row always shows up empty
So how can I use a GridDropDownColumn and assign its own datasource at runtime in my code behind ?
** Im not using a datatable as the grid datasource, im using a custom collection so ListDatamember would have no effect
<telerik:GridDropDownColumn UniqueName="ddlArtistType" DataField="ArtistType" ListTextField="ArtistType" ListValueField="ArtistType" |
ListDataMember="ArtistType" HeaderText="Artist Type" DropDownControlType="RadComboBox" /> |
When I run the page and add a new row, the items in the drop down list selection are taken from the underlying grid datasource not its own separate datasource (so many items in the dropdown are dupliacted)
I need to assign a totally separate datasource in order to pick one of the items to enter into the underlying column in the grid
Using the above method doesnt seem to make sense since when would you ever use the grid as a datasource for the dropdown, they are usually a totally different dataset
Ive tried this
<telerik:GridDropDownColumn UniqueName="ddlArtistType" DataField="ArtistType" HeaderText="Artist Type" DropDownControlType="RadComboBox" /> |
So how can I use a GridDropDownColumn and assign its own datasource at runtime in my code behind ?
** Im not using a datatable as the grid datasource, im using a custom collection so ListDatamember would have no effect