|
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.
|