2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
GroupingWhile modifying the content of the grouped records, the groups are not getting collapsed in the version 13.1.0.X (2015 Volume 1) of the Essential studio. Solution From the 13.1.0.X version of Essential Studio, the default behavior is, when a group is added or modified it does not collapse all the other groups. To collapse the entire group, except the distinct group created by adding or modifying the record, set the TableDirty property value as “true” in SourceListListChanged event. When a table is marked dirty, any subsequent access to child elements and a resulting Syncfusion.Grouping.Element.EnsureInitialized(System.Object) call triggers re-categorization of all records in the table. C# //Hook the event in Form()to set the table value as dirty. this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged); void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e) { //Set the table as dirty e.Table.TableDirty = true; } VB 'Hook the event in Form()to set the table value as dirty. Private Me.gridGroupingControl1.SourceListListChanged += New TableListChangedEventHandler(AddressOf gridGroupingControl1_SourceListListChanged) Private Sub gridGroupingControl1_SourceListListChanged(ByVal sender As Object, ByVal e As TableListChangedEventArgs) 'Set the table as dirty e.Table.TableDirty = True End Sub The following screenshot illustrates only the new group in the table. Figure 1: New group in table Samples: C#: Grouping VB: Grouping |
2X faster development
The ultimate WinForms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.