EDN Admin
Well-known member
Hi,
I have a DGV in bound mode, but one of the column is unbound.
In the DataGridView, there are several validation events, such RowValidating,CellValidating, CancelRowEdit etc.
In code of these event handlers, how do I know if the cell or the row Im validating is the new row which has not been commited to the datasource?
Basically I need to be able distinguish between a new row being created and an existing being edited.
The DataGridViewRow.IsNewRow does not work.
Please help.
Regards,
Mizan
Mizan Rahman
View the full article
I have a DGV in bound mode, but one of the column is unbound.
In the DataGridView, there are several validation events, such RowValidating,CellValidating, CancelRowEdit etc.
In code of these event handlers, how do I know if the cell or the row Im validating is the new row which has not been commited to the datasource?
Basically I need to be able distinguish between a new row being created and an existing being edited.
The DataGridViewRow.IsNewRow does not work.
Please help.
Regards,
Mizan
Mizan Rahman
View the full article