esmithz Posted February 4, 2004 Posted February 4, 2004 Hello. I have a sortable datagrid bound to a datatable. I'm allowing the user to add/change cells as well as add/change/delete rows. Once the user is finished they will select a button "Accept changes". I want to only look at the rows that were changed. Is there a method built into the datagrid that allows me to do this? Any suggestions would help. Thanks. Quote
Moderators Robby Posted February 4, 2004 Moderators Posted February 4, 2004 The Dataset has a property called HasChanges you can use. Quote Visit...Bassic Software
mocella Posted February 4, 2004 Posted February 4, 2004 To specifically see just those changed rows, look into using the DataRowState enum - it lets you filter off your data-table for a given row-state (modified, added, deleted, etc). Here's a quick sample to get your changed rows: DataTable tempTable = origTable.GetChanges(DataRowState.Changed); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.