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.
How can I get current cell ''s column mapping name (underlying field name) when clicking in a cell?
I used this code, but I noticed the column index keep changing when grouping.
int iCurrCol=gdBase.TableControl.CurrentCell.ColIndex-1;
if (iCurrCol>=0)
{
string sFieldName=gdBase.TableDescriptor.Columns[iCurrCol].Name;
}
It works perfect.
Thanks for great help.
Lan
>Try:
>
>GridCurrentCell cc = gdBase.TableControl.CurrentCell;
>GridTableCellStyleInfo style = gdBase.TableControl.Model[cc.RowIndex, cc.ColIndex];
>string colName = style.TableCellIdentity.Column.MappingName;
>