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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC event, TableControlPrepareViewStyleInfo

Thread ID:





76222 Aug 27,2008 01:21 PM UTC Aug 28,2008 06:49 AM UTC WinForms 1
Tags: GridControl
Asked On August 27, 2008 01:21 PM UTC

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

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

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)




Please try this and let me know if this helps.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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