Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Compare two datasets
 

Compare two datasets

Hi, I have a program that is continuosly refreshing information from the database (checking for new rows), so I have a timer that fills a dataset every two seconds, and then it sets the datasource of my datagrid to the dataset, the problem is that the user has to select an item from the datagrid, but when the datagrid is refreshed, the item the user had selected is lost, and this happens every two seconds. Does anybody knows a way that I could only update the datagrid only if there are new rows returned from the query or if the rows returned are different? thanks.
S10n  Wednesday, March 28, 2007 4:48 PM

Use datatable.getchanges to get added/updated rows

A_Kumar  Thursday, March 29, 2007 1:51 AM

Use datatable.getchanges to get added/updated rows

A_Kumar  Thursday, March 29, 2007 1:51 AM

You can use google to search for other answers

Custom Search

More Threads

• Why is DataTable.Select one step behind DataGridView.CellValueChanged?
• Datagridview Exception: column does not allow null
• query related datagrid
• binding a combobox from a datareader
• Datagridview find text(Search)
• Datagridview task-winform-help
• Datagridview bug : columns re-appear
• DataSet, Xml code and Images!
• Windows Control Library in WebForm
• Eliminar um elemento da DataGridView com o evento UserDeletingRow e UserDeletedRow