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

column alignment in GGC ''s nested table

Thread ID:

Created:

Updated:

Platform:

Replies:

79903 Mar 3,2009 05:41 PM UTC Mar 4,2009 01:23 PM UTC WinForms 1
loading
Tags: GridControl
David Cui
Asked On March 3, 2009 05:41 PM UTC

hi, guys,
say two nested table, one is parent, one is child.

how can I easily align childtable's third column (more) to parenttable's Newly added col (say, the same name as child table's) ?
looks like the whole look&feel like Tree-Grid.
or there are some other easier way to do so.. example ...

second question: what about the newly added col in parent is Virtual column ?

david


Nisha Arockiya A [Syncfusion]
Replied On March 4, 2009 01:23 PM UTC

Hi David,

Thanks for your interest in syncfusion Products.

Query 1:

how can I easily align childtable's third column (more) to parenttable's Newly added col

Frozen Column concept can be used to synchronise the Parent column with Child column.


for (int n = 0; n <= freezeCol; n++)
parentToChildRelationDescriptor.ChildTableDescriptor.Columns[n].TrackWidthOfParentColumn = gridGroupingControl1.TableDescriptor.Columns[n].Name;


When freezing columns you have to make sure that the frozen columns in the nested tables are properly aligned with the parent table. The grid does not support diffent scroll divider x-coordinates for nested tables. The only exception to this rule is if you turn off freezing columns for all nested tables by setting/leaving ChildTableDescriptor.FrozenColumn = ""; (empty string) all together. The TrackWidthOfParentColumn propetry of a column descriptor ensures that columns are aligned and stay in sync.

Query 2:
what about the newly added col in parent is Virtual column ?

Could you please provide more information on this issue?

Let me know if this serve your needs.

Regards,
Nisha.



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

;