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.
Unfortunately, activation email could not send to your email. Please try again.

How to get Group caption value on click on group cell

Thread ID:

Created:

Updated:

Platform:

Replies:

58711 Mar 27,2007 05:22 AM Mar 27,2007 05:55 AM Windows Forms 1
loading
Tags: GridControl
Harshad
Asked On March 27, 2007 05:22 AM

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 05:55 AM

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.

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.

;