I'm using an Infragistics Wingrid but I'm assuming (maybe incorrectly) that it behaves the same as the MS datagrid in this context. My dilemma is that I have a Wingrid that acts as a readonly snapshot of the data in my database. The underlying datasource for the grid is never updated by the grid. I have a timer that fires a stored procedure that queries the database every 10 seconds to get any updates. The grid is updated fine when I call:
However, if the user has the the child nodes in the grid expanded (it's an hierachical datagrid) they are collapsed when the line above is called. I have tried the Infragistics-centric myGrid.Rows.Refresh(RefreshRow.ReloadData) in place of "datasource = myDS" when a refresh is being performed. This indeed keeps the grid expanded to that node but does not update my grid with the new rows that have been added to the underlying datasource. Any wisdom in this area would be most appreciated.
Code:
myGrid.DataSource = dsMyDataSet
However, if the user has the the child nodes in the grid expanded (it's an hierachical datagrid) they are collapsed when the line above is called. I have tried the Infragistics-centric myGrid.Rows.Refresh(RefreshRow.ReloadData) in place of "datasource = myDS" when a refresh is being performed. This indeed keeps the grid expanded to that node but does not update my grid with the new rows that have been added to the underlying datasource. Any wisdom in this area would be most appreciated.