Hi,
I have a Form called PeopleList which contains a datagridview. I have a peopleDataSet which contains the data obtained from an SQL server from the people table. i can get the datagrid to display the value in the dataset using a table adapter.
I have changed the code recently, now instead of displaying the whole list, i call a form through which users can specify values like name, department etc, and which i pass on to the fill function of the table adapater and it returns the sub set data. This seems to be working fine as well.
What i need to do now is, each time the datagrid displays new data, the application should traverse through the set of records being displayed, if the lastUpdated column (which is datetime) contains dates that are less than 2 days from the current date then display those records in a pop up data grid and alert the user that these records havent been updated recently.
So what i am looking for is a way to know when the data in the datagridview has changed.
_in that event, somehow loop through the records being displayed by the datagrid and then compare the lastUpdated column with todays date
-display those rows that are in the past on a popup datagrid form.
Any suggestions would be much appreciated.
thanks,
abhi
I have a Form called PeopleList which contains a datagridview. I have a peopleDataSet which contains the data obtained from an SQL server from the people table. i can get the datagrid to display the value in the dataset using a table adapter.
I have changed the code recently, now instead of displaying the whole list, i call a form through which users can specify values like name, department etc, and which i pass on to the fill function of the table adapater and it returns the sub set data. This seems to be working fine as well.
What i need to do now is, each time the datagrid displays new data, the application should traverse through the set of records being displayed, if the lastUpdated column (which is datetime) contains dates that are less than 2 days from the current date then display those records in a pop up data grid and alert the user that these records havent been updated recently.
So what i am looking for is a way to know when the data in the datagridview has changed.
_in that event, somehow loop through the records being displayed by the datagrid and then compare the lastUpdated column with todays date
-display those rows that are in the past on a popup datagrid form.
Any suggestions would be much appreciated.
thanks,
abhi