Hi Paulo,
Thanks for contacting Syncfusion support.
Yes, you were right. If you want the column name in CommentTipShowing event, you can get the column name from GridStyleInfo. Also, you can get the column name using below suggestions. please make use of the below code,
Code Example
|
private void TableControl_CommentTipShowing(object sender, CommentTipShowingEventArgs e)
{
//Suggestion1
GridTableCellStyleInfo style = gridGroupingControl1.TableControl.GetTableViewStyleInfo (e.RowIndex, e.ColIndex);
string colname = style.TableCellIdentity.Column.Name;
//Suggestion2
int colIndex = this.gridGroupingControl1.TableDescriptor.ColIndexToField(e.ColIndex);
string name = this.gridGroupingControl1.TableDescriptor.Columns[colIndex].Name;
} |
Please let us know if you have any other queries.
Regards,
Sindhu