Refresh DataGrid with Latest Values
-
Hi all I am populating a datagrid with details directly from the database. now i some new insertion is done in database, the grid should be refreshed..so i am again calling load method to repopulate the grid.Can i refresh the grid with only latest changes that means i dont want to reload the entire data instead i need to load recent data and should be appended to the grid .Is it possible if possible how can i do it Thanks in advance
Regards DilipRam
-
Hi all I am populating a datagrid with details directly from the database. now i some new insertion is done in database, the grid should be refreshed..so i am again calling load method to repopulate the grid.Can i refresh the grid with only latest changes that means i dont want to reload the entire data instead i need to load recent data and should be appended to the grid .Is it possible if possible how can i do it Thanks in advance
Regards DilipRam
You probably want to take a look at the BindingSource[^] class. It should handle what you're looking for.
-
You probably want to take a look at the BindingSource[^] class. It should handle what you're looking for.
-
Thanks for the reply,but since i am loading the data into a datatable and using the datatable count i am adding new row to the grid..so how can i used biniding concept here.can any one help me here
Regards DilipRam
The bindingsource does all that for you. When you update the underlying dataset, it updates anything the bindingsource is linked to.