We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

No subject

When using the grid with a "virtual model", how do you get the grid to recognize that the column and row counts have changed ? I have overridden the QueryColCount and QueryRowCount event handlers, but what is it that forces the underlying events to fire ?

1 Reply

AD Administrator Syncfusion Team October 10, 2002 04:11 PM UTC

Normally, when there is new data to display, you just redraw the grid by calling Refresh() or RefreshRange() or Invalidate. This forces the grid to request the new data when it draws. So, if your external data changes column 2, then you can call gridControl1.Refresh(GridRangeInfo.Col(2)); to have the grid redraw column 2 using the new data. If you do something like change the number of rows and columns, you may also have to call ResetVolatileData(); as these values may get cached.

Loader.
Up arrow icon