W
Wuschba
Guest
Hi.
I have a DataGridView which is bound to a DataTable:
myDataGridView.DataSource = myDataTable;
The user does the following:
I tried to call myDataGridView.EndEdit() before saving, but without any effect.
So how can I make the DataGridView commit the value to the DataTable immediately after it has been created? And why this is not happing automatically?
Continue reading...
I have a DataGridView which is bound to a DataTable:
myDataGridView.DataSource = myDataTable;
The user does the following:
- He creates new row by clicking on the last row of the DataGridView ("*").
- He fills in the cells of this new row.
- He navigates to other rows with the mouse or the arrow-keys.
- He saves myDataTable. Result: The new line is lost.
I tried to call myDataGridView.EndEdit() before saving, but without any effect.
So how can I make the DataGridView commit the value to the DataTable immediately after it has been created? And why this is not happing automatically?
Continue reading...