The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I noticed that the QueryCellInfo event in virtual grid were being called about two times of number of cells in one refresh. in other words, QueryCellInfo was being called twice for every cell. Is this normal?
ADAdministrator Syncfusion Team November 8, 2007 04:16 PM UTC
If you are calling grid.Refresh, then QueryCellinfo will be hit twice per cell as that method does more than just force a redraw.
If you use Invalidate/Update calls, then I think that QueryCellInfo will only be hit once for each cell. this.gridControl1.Invalidate(); this.gridControl1.Update();
QSQingde ShiNovember 8, 2007 05:13 PM UTC
Clay,
Thanks. It seems the ResetVolatileData() has to be called too to reset Rows and Columns.
and it also seems that if only call ResetVolatileData() and Invalidate(), it also can achieve a refresh effect.
Am I right? Is there any potential problems for this?
Thanks,
Q
>If you are calling grid.Refresh, then QueryCellinfo will be hit twice per cell as that method does more than just force a redraw.
If you use Invalidate/Update calls, then I think that QueryCellInfo will only be hit once for each cell. this.gridControl1.Invalidate(); this.gridControl1.Update();
ADAdministrator Syncfusion Team November 8, 2007 05:44 PM UTC
If you change the RowCount or the ColCount, then you will have to call grid.ResetVolatileData to see those changes take effect.
Here is a minimal sample showing QueryCellInfo being hit in the output window.