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 PrepareViewStyleInfo Hierarchy Level

Thread ID:





33922 Aug 29,2005 09:21 PM UTC Aug 31,2005 04:14 PM UTC WinForms 2
Tags: GridControl
Asked On August 29, 2005 09:21 PM UTC

Hi, I''m using the GGC with the datasource set to table from a DataSet which is related (DataRelation) to another Table from the same DataSet. The tables are displayed properly. How do I determine the hierarchy level in PrepareViewStyleInfo handler? ''ve tried: Element el = this.mainGrid.Table.DisplayElements[e.Inner.RowIndex]; GridRecordRow recRow = el as GridRecordRow; , but recRow.ParentGroup.TableLevel - always returns 0; Thank you

Administrator [Syncfusion]
Replied On August 30, 2005 12:03 AM UTC

It is straight-forward to get the table name. You could use this name to get the level through a simple look up table. Here is a sample. http://www.syncfusion.com/Support/user/uploads/GGC_c2e34a9b.zip I will see if I can find something simpler.

Replied On August 31, 2005 04:14 PM UTC

That''s exactly what i needed. Thank you


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