Home Forums WinForms controls Xceed Grid for WinForms Hiding and Showing a row Reply To: Hiding and Showing a row

User (Old forums)
Post count: 23064

You should use a SummaryRow (or a ValueRow if you prefer to handle the calculation yourself) and add it to the FixedHeaderRows collection of the GridControl. Then you set this row visible property to true of false.


Dim totalRow as New ValueRow()
GridControl1.FixedHeaderRow.Add( totalRow )

totalRow.Visible = False
GridControl1.FixedHeaderRows( 2 ).Visible = True

The index of the valueRow in the FixedHeaderRows will depend of what rows are already in the collection. Normally, there is already the GroupByRow and the ColumnManagerRow present.

Imported from legacy forums. Posted by André (had 372 views)