Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid
The SpecialRowSeparator property lets you clearly separator the headers, filter row, fixed AddRow, fixed summary footer, fixed rows and non-fixed rows from the rows. When you use this feature, an extra UI element will be inserted below the specified special rows to create a visual gap.
Before you start writing any code, you should place using/imports directives in your code-behind so you don’t need to always type out a member’s fully qualified name.
In Visual Basic:
Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid
In C#:
using Infragistics.Win; using Infragistics.Win.UltraWinGrid;
To enable this functionality set the SpecialRowSeparator property to the SpecialRowSeparator enumeration value(s) which affect the type(s) of special rows which need to be separated. The 'Default' value resolves to 'All', meaning that by default a separator will be displayed beneath each type of special row.
In Visual Basic:
Me.UltraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows
In C#:
this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparator = SpecialRowSeparator.FixedRows;
To control the appearance of the SpecialRowSeparator use the SpecialRowAppearance property on the Override.
You can specify the height of the separators by setting the SpecialRowSeparatorHeight property. The default height is 6 pixels.
In Visual Basic:
Me.UltraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 25
In C#:
this.ultraGrid1.DisplayLayout.Override.SpecialRowSeparatorHeight = 25;
The final property you might want to change is the BorderStyle for the SpecialRowSeparator. You can do this by changing the BorderStyleSpecialRowSeparator property. The default setting is 'RaisedSoft'.
In Visual Basic:
Me.UltraGrid1.DisplayLayout.Override.BorderStyleSpecialRowSeparator = _ UIElementBorderStyle.Dashed
In C#:
this.ultraGrid1.DisplayLayout.Override.BorderStyleSpecialRowSeparator = UIElementBorderStyle.Dashed;
Using the above code you see a area out lined with a dashed line always separating your headers, filter row, fixed AddRow, fixed summary footer, fixed rows and non-fixed rows from your first row.