Home › Forums › WinForms controls › Xceed Grid for WinForms › Summary Row › Reply To: Summary Row
For the collapse, collapse the group before fill in the data, then in the GroupAdded handler, uncollapse the first group :
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Group1.Collapse()
CustOrdersDetailTableAdapter.Fill(NorthwindDataSet.CustOrdersDetail, 10294)
End Sub
Private Sub GridControl1_GroupAdded(ByVal sender As Object, ByVal e As Xceed.Grid.GroupAddedEventArgs) Handles GridControl1.GroupAdded
If (GridControl1.Groups.Count = 1) Then
e.Group.Collapsed = False
End If
End Sub
As for the summary row, you can add a SummaryRow to the group, the set the VisibleWhenCollapsed property to true, and it will stay visible all the time. This row is highly configurable, and does all the calculation you set automatically. If you want, you can also use the GroupManagerRow, which display information about the group, and simply modify the TitleFormat property so that it will display what you want.
Imported from legacy forums. Posted by André (had 546 views)