|
-
Feb 27th, 2006, 02:20 PM
#1
Thread Starter
Addicted Member
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.
-
Feb 27th, 2006, 06:45 PM
#2
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?
-
Feb 28th, 2006, 04:24 AM
#3
Thread Starter
Addicted Member
Re: New Rows
It is a Janus datagrid populated by a dataset
-
Feb 28th, 2006, 04:34 AM
#4
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|