DataGridView identifying new row

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
 
Back
Top