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 need to create a two column grid. The first column will contain the field name, the second column will contain the data. Is it possible to set a different data type for different rows in the same column or would I have to make them all strings?
ADAdministrator Syncfusion Team August 9, 2006 06:42 AM UTC
Hi Jay,
To achieve this, you need to handle the QueryCellInfo event and set the CellValueType property of the cell (e.Style.CellValueType = typeof(int) ). Here is a minimal sample to implement this.
So this means just before the user selects the second column to edit it''s value, setting the cellvalue in QueryCellInfo will change a textbox column to a monthcalender or dropdown, and they will function correctly?
Thx
ADAdministrator Syncfusion Team August 9, 2006 09:42 AM UTC
Hi Jay,
The QueryCellInfo event is normally used to provide the GridStyleInfo object for a given cell. If the underlying datasource accepts, then ofcourse you can change the CellValueType and CellValues by handling this event. To know more about QueryCellInfo, you can take a look at this documentation: