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.
Syncfusion Feedback

GGC PrepareViewStyleInfo Hierarchy Level

Thread ID:

Created:

Updated:

Platform:

Replies:

33922 Aug 29,2005 09:21 PM UTC Aug 31,2005 04:14 PM UTC Windows Forms 2
loading
Tags: GridControl
Ivan
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.

Ivan
Replied On August 31, 2005 04:14 PM UTC

That''s exactly what i needed. Thank you

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

;