I am unsure how to add rows to an existing datagrid.
IE.
When the application starts a dataTable is created from a resultset and a data grid is bound to this datatable.
The application updates every 15 seconds via another query to an MS SQL database. All new records in the database are added to the dataGrid so the datagrid holds all previous data and the new rows that have been added to the database in the past 15 seconds.
The real hard part is that I would like to do this without re-creating or re-freshing the datagrid every time. For example, if the user scrolls down to the 50th record, then after 15 seconds I would like the datagrid to have all of the previous data, the new data. I do not want the datagrid to refresh so that the 50th row that the user scrolled down to is lost. This way if the user scrolls to a certain row, then that row remains in the same place on the screen until the user scrolls up or down.
Question:
How do I go about adding new rows to a datagrid without having it loose the user's place?
I appreciate any help
IE.
When the application starts a dataTable is created from a resultset and a data grid is bound to this datatable.
The application updates every 15 seconds via another query to an MS SQL database. All new records in the database are added to the dataGrid so the datagrid holds all previous data and the new rows that have been added to the database in the past 15 seconds.
The real hard part is that I would like to do this without re-creating or re-freshing the datagrid every time. For example, if the user scrolls down to the 50th record, then after 15 seconds I would like the datagrid to have all of the previous data, the new data. I do not want the datagrid to refresh so that the 50th row that the user scrolled down to is lost. This way if the user scrolls to a certain row, then that row remains in the same place on the screen until the user scrolls up or down.
Question:
How do I go about adding new rows to a datagrid without having it loose the user's place?
I appreciate any help