AD
Administrator
Syncfusion Team
April 26, 2004 11:35 AM UTC
Normally, to refresh the grid, you shoul donly have to call grid.Refresh().
This should take care of the times that just moving the mouse over the values should redraw them. But if there are situations where you actually need to close and open a node to refresh things, then calling grid.Refresh() will not be sufficient. Below is a snippet that "sliently" closes and opens a node, and then redraws it. Maybe something like this will work for you.
this.gridDataBoundGrid1.BeginUpdate();
this.gridDataBoundGrid1.Model.SuspendChangeEvents();
this.gridDataBoundGrid1.ExpandAtRowIndex(rowIndex);
this.gridDataBoundGrid1.CollapseAtRowIndex(rowIndex);
this.gridDataBoundGrid1.Model.ResumeChangeEvents();
this.gridDataBoundGrid1.EndUpdate();
this.gridDataBoundGrid1.Refresh();