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

[Solved] User control edit form - bind data upon event

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gil
Top achievements
Rank 1
Gil asked on 28 Feb 2010, 05:32 AM
consider the following example: http://demos.mcmscontrols.com/ASPNET/Grid/Examples/DataEditing/AllEditableColumns/DefaultCS.aspx

I have the same requirement with one exception,  when the value in "Supplier" ComboBox changes,
"Category" should have a different set of options (according to the selected value in "Supplier"),
while values in other controls must not change.

can it be done?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 01 Mar 2010, 07:46 AM
Hi,

The desired scenario is discussed in the help article Referencing controls in grid row/edit form . If you are using a UserControl  you can directly modify the Category dropdownlist in the SelectedIndexChanged event of the Supplier  dropdownlist.

Thanks,
Princy 


Tags
Grid
Asked by
Gil
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or