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.

GGC event, TableControlPrepareViewStyleInfo

Thread ID:

Created:

Updated:

Platform:

Replies:

76222 Aug 27,2008 09:21 AM Aug 28,2008 02:49 AM Windows Forms 1
loading
Tags: GridControl
Louis
Asked On August 27, 2008 09:21 AM

Hi, how do I determine in the tablecontrolPrepareViewStyleInfo Event if a row is collapsed or expanded?


Jisha Joy [Syncfusion]
Replied On August 28, 2008 02:49 AM

Hi Louis,

We appreciate your interest in SYncfusion Products.

You can use the IsExpanded property to determine whether a particular record is Expanded or Collapsed

Please refer the code:


private void gridGroupingControl1_TableControlPrepareViewStyleInfo(object sender, GridTableControlPrepareViewStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo;
GridRecord rec = style.TableCellIdentity.DisplayElement.ParentRecord as GridRecord;
if(rec != null)
{

if (rec.IsExpanded)
{
Console.WriteLine("Expanded");

}

else
{
Console.WriteLine("Collapsed");
}

}
}


Please try this and let me know if this helps.

Regards,
Jisha


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.

;