Click here to Skip to main content
15,843,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my datagrid control contains 2 combo box columns,Loading of 2nd combo box depends on 1st combo box..but when i entered into next row 2nd combo box in 1st row is reloaded and value selected by user is changing.So Plz help me how to prevent reloading.
Posted
Comments
Xeshan Ahmed 12-Oct-11 6:52am    
make your question bit clear
Xeshan Ahmed 12-Oct-11 6:53am    
insufficient info

Hi,

Here is what I understand:
Combo box B, depends on Combo box A.
Both Combo boxes are sitting in a data grid.
You change rows after editing both combos

Assuming that the idea works on a single row and that the reloading only happens when you change rows, we should look there.

Unless each row has a datasource object associated with it, the combo's will have only one source. Moving to the next row forces all the combos to read from that one source.

A solution might be to save the first row on completion of selection before moving to the next row.
or
Maybe add a datasource to the template, thereby allowing autonomy between rows.

just some idea's
 
Share this answer
 
This article[^] should be useful to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900