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.

Unbound Grouping Issues

Thread ID:

Created:

Updated:

Platform:

Replies:

64190 Jul 16,2007 02:32 PM Jul 16,2007 03:02 PM Windows Forms 3
loading
Tags: GridControl
Michael Sabin
Asked On July 16, 2007 02:32 PM

I am currently using a GridGroupingControl, and grouping my rows based upon an Unbound Column. I was wondering if there is a way for me to reset the value in that column, outside of the QueryValue event.

I have tried to first clear the GroupedColumns and then re-add that column, but the issue with this is that none of the groups stay expanded afterwards. Is it possible to use this method and somehow preserve the expanded groups?

Thanks

Michael

haneefm [Syncfusion]
Replied On July 16, 2007 02:59 PM

Hi Michael,

You can use the Record.SetValue() method to change the unbounded column value of the record in a grid. Below is a code snippet.

this.grid.Table.Records[1].SetValue("UnBoundColumnName","Value");//Set the value of unbound column

See the forum thread for persisting the expanded group levels in a grid.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=29909

Best regards,
Haneef

Michael Sabin
Replied On July 16, 2007 03:01 PM

Never mind, I figured out how to do this...

1. Before the change, iterate through the Groups in the grid.Table.Engine.GroupingControl.Table.TopLevelGroup
2. For each Group, use the IsExpanded property to see if is expanded.
3. Reset the GroupedColumns
4. Iterate throught the groups again, and set the IsExpanded property

Michael Sabin
Replied On July 16, 2007 03:02 PM

OK, thanks

>Hi Michael,

You can use the Record.SetValue() method to change the unbounded column value of the record in a grid. Below is a code snippet.

this.grid.Table.Records[1].SetValue("UnBoundColumnName","Value");//Set the value of unbound column

See the forum thread for persisting the expanded group levels in a grid.
http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=29909

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.

;