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.
ADAdministrator Syncfusion Team December 18, 2006 04:18 AM UTC
Hi Vladymyr,
Use the Style.CellValueType property to get the type of the cell values in a Grid. Here is a below code snippet to show this.
private void grid_TableControlCurrentCellErrorMessage(object sender, GridTableControlCurrentCellErrorMessageEventArgs e) { //Get the CurrentCell value type in a grid. GridCurrentCell cc = e.TableControl.CurrentCell; GridStyleInfo style = cc.Renderer.CurrentStyle; Type type = style.CellValueType as Type; e.Inner.Cancel = true; MessageBox.Show("CurrentCell Type : " + type.ToString() , "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); }