We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to get Group caption value on click on group cell

Hi,

How can i get the group cell value when i click on the group cell.
Suppose i have group on the "City" then on click on group cell i want the group value i.e city name present in the clicked group cell
How to get the group caption/cell value
Please help

Thanks
Harshad



1 Reply

JS Jeba S Syncfusion Team March 27, 2007 09:55 AM UTC

Hi Harshad,

You can try handling TableControlCellClick to get the group caption when clicking on the group cell.

private void gridGroupingControl1_TableControlCellClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellClickEventArgs e)
{
Console.WriteLine(e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex).TableCellIdentity.TableCellType);
Console.WriteLine(e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex).Text);
}


Kindly let us know if this helps.

Best Regards,
Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon