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. Image for the cookie policy date
close icon

GGC PrepareViewStyleInfo Hierarchy Level

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

2 Replies

AD Administrator Syncfusion Team 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.


IV Ivan August 31, 2005 04:14 PM UTC

That''s exactly what i needed. Thank you

Loader.
Live Chat Icon For mobile
Up arrow icon