This is a migrated thread and some comments may be shown as answers.

GridTemplateColomn with RadComboBox

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dominic
Top achievements
Rank 2
Dominic asked on 18 Sep 2008, 08:08 PM
Hi

I know that my case must be really simple but i dont find the solution ..... I have a TemplateColomn in my grid, in the EditItemTemplate of  this colomn i have a radcombo box that is bind to a second ObjectDataSource (my grid is also bind to objectDataSource), and everything is great but in the ItemTemplate i have to put a label but i cant find how to bind it to the combobox datasource  because i dont want to display the integer value includes in my grid datasource..... I just want to bind the data like is it the cas in the automatic operations. Sorry for my bad english.... :(

Thanks

1 Answer, 1 is accepted

Sort by
0
Dominic
Top achievements
Rank 2
answered on 19 Sep 2008, 02:27 PM

Hi

Finally my problem was really simple.  I have to use a GridDropDownColomn and in my Grid_UpdateComand , and simply use

Dim
EditItem As GridEditableItem = e.Item
TryCast(EditItem("UniqueColomnName").Controls(0), RadComboBox).SelectedValue

To extrcat the value.

So that was the solution, ans the real problem was more my expenrience level with this component than other things. :-)

Thanks.
Tags
Grid
Asked by
Dominic
Top achievements
Rank 2
Answers by
Dominic
Top achievements
Rank 2
Share this question
or