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.
Hi:
A simple question, We use QueryCellFormattedText event with GridDataBoundGrid, and how do we extract the column mapping name from GridCellTextEventArgs?
Thanks,
Chunhui
ADAdministrator Syncfusion Team May 10, 2005 11:16 PM UTC
Hi Chunhui,
You could try this:
private void Model_QueryCellFormattedText(object sender, GridCellTextEventArgs e)
{
if(e.Style.CellIdentity.ColIndex > 0 && e.Style.CellIdentity.RowIndex > 0)
{
System.Diagnostics.Trace.WriteLine(this.gridDataBoundGrid1.Binder.InternalColumns[this.gridDataBoundGrid1.Binder.ColIndexToField(e.Style.CellIdentity.ColIndex)].MappingName);
}
}
Best regards,
Jay N