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.

Expand Nodes in child table after grid grouping control refreash

Thread ID:

Created:

Updated:

Platform:

Replies:

57520 Mar 5,2007 11:38 PM Mar 7,2007 05:27 AM Windows Forms 2
loading
Tags: GridControl
Manish Bafna
Asked On March 5, 2007 11:38 PM

Hi,
I have databound Grid Grouping Control with one simple parent-child relationships.End users would be expanding child nodes and make some changes.Thereafter when users click on save button i would be saving changes to database and then refreasg Grid Grouping Control.What i want is that in whichever child nodes user has made changes should get expanded after i refreash GGC(so that users can see changes they have made without clicking on plu-minus sign).Any samples/insights on this would be higly appreciated.
Thanks in advance for replying(as always)

With Warm Regards,
Manish Bafna.

Administrator [Syncfusion]
Replied On March 6, 2007 06:41 PM

Hi Manish,

You can use the following code to expand and collapse the grid table records.

To expand the CurrentRecord : this.gridGroupingControl1.Table.CurrentRecord. IsExpanded = true;
To expand a selected record : this.gridGroupingControl1.Table.SelectedRecords[0].Record.IsExpanded = true;
To expand the specific Record : this.gridGroupingControl1.Table.Records[ index ].IsExpanded = true;

To expand all the records in a table
this.gridGroupingControl1.Table.ExpandAllRecords();

To Collapse all the records in a grid.
this.gridGroupingControl1.Table.CollapseAllRecords();

Best regards,
Haneef

Manish Bafna
Replied On March 7, 2007 05:27 AM

Hi,
I dont know whether i would be able to expalin properly but i am trying my best.
I have databound Heirchical Grid Grouping Control with two heirchical levels(0-parent,1-child).What i want to do is plus/minus of parent table should get expaned(when i reload the GGC after the user clicks save button) for rows of child table in which user has made changes.For this i am palnning to use tablecontrolcellchanged event of child table but i am not able to get rowindex of corresponding parent row of parent table.Once i am able to get rowindex of corresponding parent row of parent table i will store rowindex in an arraylist.Thereafter i will use youe isexpanded syntax(i use rowindexes from this arraylist to expand only those rows of parent table for which some changes has been in their child rows)

Any insights/ideas on this would be highly appreciated.

With Warm Regards,
Manish Bafna.

>Hi Manish,

You can use the following code to expand and collapse the grid table records.

To expand the CurrentRecord : this.gridGroupingControl1.Table.CurrentRecord. IsExpanded = true;
To expand a selected record : this.gridGroupingControl1.Table.SelectedRecords[0].Record.IsExpanded = true;
To expand the specific Record : this.gridGroupingControl1.Table.Records[ index ].IsExpanded = true;

To expand all the records in a table
this.gridGroupingControl1.Table.ExpandAllRecords();

To Collapse all the records in a grid.
this.gridGroupingControl1.Table.CollapseAllRecords();

Best regards,
Haneef

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.

;