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

set DropDownColumn DataSource

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Craig Wallace
Top achievements
Rank 1
Craig Wallace asked on 15 Jul 2010, 05:23 PM
Hi,

I have a RadGrid which I would like to use in more than one place so want to wrap it up as a usercontrol.  It has a DropDownColumn, which I would like to bind to a single instance of an EntityDataSource control which exists in the parent control where my RadGrid control instances live.

So, how can I either:
1).  Set the DropDownColumn DataSourceID to the ID of a control in the parent control, and have it work.
or
2).  Set the DropDownColumn DataSource to a datasource in the parent control.

Thanks,

Craig

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jul 2010, 07:49 AM
Hello Craig,


You can access the DropDown control in ItemDataBound event and set the DataSource as per your requirement.

Online help explains more on this:
Customize/Configure GridDropDownColumn


Regards,
Shinu.
Tags
Grid
Asked by
Craig Wallace
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or