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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get Group caption value on click on group cell

Thread ID:

Created:

Updated:

Platform:

Replies:

58711 Mar 27,2007 09:22 AM UTC Mar 27,2007 09:55 AM UTC WinForms 1
loading
Tags: GridControl
Harshad
Asked On March 27, 2007 09:22 AM UTC

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



Jeba S [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;