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.
From the TableControlCellClick event, how do I get the columnname when the row is a GridCaptionSection. I noticed that the Column property of the style.TableIdentityInfo object is null when the row is a GridCaptionSection.
ADAdministrator Syncfusion Team January 29, 2007 09:47 AM UTC
Hi James,
Thanks for being patience.
The reason TableIdentity.Column being null is that the caption section is not with respective to columns and it is possible to get only the GroupedColumn and SummaryColumn name. The following is the code snippet. >>>>>>>>>>>>>>>>>>>>> //TableControlCellClick event GridTableCellStyleInfo style = e.TableControl.Table.TableModel[e.Inner.RowIndex, e.Inner.ColIndex]; if (style.TableCellIdentity.TableCellType == GridTableCellType.GroupCaptionSummaryCell) { GridSummaryColumnDescriptor columnName = style.TableCellIdentity.SummaryColumn; if(columnName != null) MessageBox.Show(columnName.Name); } >>>>>>>>>>>>>>>>>>>>>
Kindly let us know if you need any further assistance. Have a nice day.