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.
Hello,
I new to Syncfusion grid. I work with Delphi 8.
I have read in the knowledge base that it was possible to add icons in the column headers by doing this :
Grid[0,1].CellType := ''Static'';
Grid[0,1].CellAppearance := GridCellAppearance.Flat;
Grid[0,1].ImageList := ImageList1;
Grid[0,1].ImageIndex := 0;
this work well when do not work with ''QueryColCount'', ''QueryRowCount'' event.
Are the two things compatible ? Can I work with a virtual grid and add icons in my headers ?
Actually I get the following error message :
''Project Project1 encountered unhandled exception class System.ArgumentOutOfRangeException''.
Thanks,
Verane.
ADAdministrator Syncfusion Team August 24, 2004 09:49 AM UTC
Instead of explicitly setting these style properties in a virtual grid, you will have to provide them dynamically in QueryCellInfo. So, in your QueryCellInfo, you should set these properties on e.Style when e.RowIndex == 0 and e.ColIndex = 1.