-
New Rows
Is it possible to differentiate between new rows and changed rows in a grid?
I want to be able to create two arrays, one with the changed rows and one with the new rows, so that I can then create an update proc and/or a new proc depending on what has happend in the grid!!
Grateful for any advice as always.
-
Re: New Rows
What type of grid are we talking about? Is it bound to a DataSource? Is the DataSource a DataTable or something else?
-
Re: New Rows
It is a Janus datagrid populated by a dataset
-
Re: New Rows
Then forget the grid and worry about the DataSource. All DataRows have a RowState property that indicates whether they have been changed or not. You can also call GetChanges on a DataSet or DataTable to get all changed rows or you can specify a RowState and get just new rows, just updated rows, just deleted rows or whatever.