Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataGridView identifying new row

$
0
0

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 I'm 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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>