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.

column alignment in GGC ''s nested table

Thread ID:

Created:

Updated:

Platform:

Replies:

79903 Mar 3,2009 12:41 PM Mar 4,2009 08:23 AM Windows Forms 1
loading
Tags: GridControl
David Cui
Asked On March 3, 2009 12:41 PM

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 08:23 AM

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.

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.

;