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

Grid Grouping not refreshed

Thread ID:

Created:

Updated:

Platform:

Replies:

60384 May 3,2007 08:38 PM UTC May 3,2007 11:23 PM UTC WinForms 2
loading
Tags: GridControl
Manoj Bhaskarakurup
Asked On May 3, 2007 08:38 PM UTC

Hi,

I am using a GGC in 2 different tabs in a tab control. I have grouped the rows based on column "A". Column "A" has a relation with column "B". Whenever I change the value in column "B" it updates the database. The grid gets the updated data and displays it. The updated row or rows may now belong to a different group. In the GGC I can see the changes in the rows with the new values for column "A" and Column "B".
If I select more than one row and update column "B", the value for column "A" gets changed appropriately. The problem is, except the last row that is selected all other rows are moved to the other group based on the new value for column "A". Even though the last row is not moved, it displays the updated values for column "A" and Column "B".
The interesting part is, the same functionality works fine in the other tab without any issues like this. The same code is used for both the tabs. But only the grid grouping is not refreshed and that too only for the one row in the selection, if I select 2 rows or 20 rows only one row(the last selected row) is left behind in the previous group and the remaining rows are moved to the new group.

Thanks
Manoj

Manoj Bhaskarakurup
Replied On May 3, 2007 09:48 PM UTC

Hi,

Is there a way to programatically reassign the group, i.e remove all the groups and group again?

Thanks
Manoj

haneefm [Syncfusion]
Replied On May 3, 2007 11:23 PM UTC

Hi Manoj,

If you want to group a table by a column in the GridGroupingControl, you can add the column name to the GroupedColumns collection in theTableDescriptor.

[C#]
// Group by column Col1.
this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1");

[VB.NET]
' Group by column Col1.
Me.GridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1")

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.

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

;