Hello!
I'm sorry, but I am stuck again.
I have filled a DataGridView with data. Now I let the user add a new row, and I need to catch an event after the user has finished to edit the row, so that I can update the database.
There is this DataRow.EndEdit event, but I cant find a way to handle this event, as the new row filled by the user is an anonymous row.
Do I have to have a Class member of type DataRow and then when the user starts to enter the data (I can catch it in a grid.SelectionChanged event) I have to set the class member to the current row?
It seems like a strange way to me. But the DataGridView does not seem to offer any event that would fit me.
Kind regards,
Andy
I'm sorry, but I am stuck again.
I have filled a DataGridView with data. Now I let the user add a new row, and I need to catch an event after the user has finished to edit the row, so that I can update the database.
There is this DataRow.EndEdit event, but I cant find a way to handle this event, as the new row filled by the user is an anonymous row.
Do I have to have a Class member of type DataRow and then when the user starts to enter the data (I can catch it in a grid.SelectionChanged event) I have to set the class member to the current row?
It seems like a strange way to me. But the DataGridView does not seem to offer any event that would fit me.
Kind regards,
Andy