datagrid not writing to datasource

  • Thread starter Thread starter AMC
  • Start date Start date
A

AMC

Hi,

I have a data grid with drop down combos. When the combos change they prompt
changes of text boxes in other columns of the same grid. How do I get these
changes to then be saved to the underlying datasource? A code sample would
be great
 
Part of it would depend on the implementation of the comboboxes.

Have you verified .HasChanges? If so, and it evaluations to true, does
..Update throw an exception or is it just not doing anything?
 
I am using this code to call the procedure that fills the other columns
based on the selection in the combo

DataGridComboBoxColumn ComboTextCol2 = new DataGridComboBoxColumn(new
ComboValueChanged(DescriptionChanged));

Should I put some code in this procedure that then saves the changes to the
datasource?
 
No exception is thrown and nothing happens. How do I explicitly save the
changes in the grid back to the datasource and what procedure should I
include this in?
 
Anything done to the grid should pass through to the object its bound to. I
need to check out the combobox code to see what's up.

Can you change the values in a combobox, move down a row and test for
HasChanges and let me know what happens.

Thanks,

Bill
 
Has changes is true. Is there code I can use to write the grid to the
datasource explicitly and where would be a good place to put this code?

Thanks
 
Back
Top