Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Datagrid Edit
 

Datagrid Edit

Hi all,

I am a newbie,

I have datagrid table, with two columns, One is ID and other one is text.

the text field column is displayed in a text box. User can modify it.

Now when they click on save , I have to save only those value which have been modified.

Is there anyway to save only those value which have been updated by the user ?

Any help is greatly appreciated.

Thanks in advance.

Swapna55  Monday, February 18, 2008 8:10 PM
what is your grid bound to? If it's a DataTable use dataTable.GetChanges(DataRowState.Modified); to get new table containing only the changed rows.
Chris Eargle  Monday, February 18, 2008 8:52 PM
what is your grid bound to? If it's a DataTable use dataTable.GetChanges(DataRowState.Modified); to get new table containing only the changed rows.
Chris Eargle  Monday, February 18, 2008 8:52 PM

You can use google to search for other answers

Custom Search

More Threads

• Bingding data to checkbox
• Want to make a Next/Previous button on DataGrid to show the data? Detail in Question!
• Refreshing a data source
• Databinding and complex objects
• How can i avoid the Unicode File conversion wizard at the time of opening up the document? [C#.net---Ms-Access---MS-Word]
• Opening a data entry form from clicking on a row of the datagridview form
• problem with GridView in UpdatePanel after DropDownList postback
• How to enable role manager?
• GridView edit button, Catch button push
• Dataset merge problem