Version

BorderStyleRow Property

Returns or sets a value that determines the border style of rows.
Syntax
'Declaration
 
Public Property BorderStyleRow As Infragistics.Win.UIElementBorderStyle
public Infragistics.Win.UIElementBorderStyle BorderStyleRow {get; set;}
Remarks

This property is used to set the border appearance of a row in the band or the grid controlled by the specified override. You can choose from several line styles. Note that not all styles are available on all operating systems. If the version of the OS that is running your program does not support a particular line style, borders formatted with that style will be drawn using solid lines.

Example
Following code sets the border styles for rows, cells and headers. It sets it on the layout's override and band 1 override to illustrate the UltraGrid's resolutin hierarchy.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button58_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button58.Click

      ' Properties set on the layout's override effect the whole grid. They are grid-wide
      ' settings.
      Me.UltraGrid1.DisplayLayout.Override.BorderStyleRow = UIElementBorderStyle.Raised
      Me.UltraGrid1.DisplayLayout.Override.BorderStyleCell = UIElementBorderStyle.Inset
      Me.UltraGrid1.DisplayLayout.Override.BorderStyleHeader = UIElementBorderStyle.Raised

      ' You can override those grid-wide settings for a particular band by setting those
      ' properties on the band's override.
      Me.ultraGrid1.DisplayLayout.Bands(1).Override.BorderStyleRow = UIElementBorderStyle.Solid
      Me.ultraGrid1.DisplayLayout.Bands(1).Override.BorderStyleCell = UIElementBorderStyle.Solid
      Me.ultraGrid1.DisplayLayout.Bands(1).Override.BorderStyleHeader = UIElementBorderStyle.Solid

  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button58_Click(object sender, System.EventArgs e)
{

	// Properties set on the layout's override effect the whole grid. They are grid-wide
	// settings.
	this.ultraGrid1.DisplayLayout.Override.BorderStyleRow = UIElementBorderStyle.Raised;
	this.ultraGrid1.DisplayLayout.Override.BorderStyleCell = UIElementBorderStyle.Inset;
	this.ultraGrid1.DisplayLayout.Override.BorderStyleHeader = UIElementBorderStyle.Raised;

	// You can override those grid-wide settings for a particular band by setting those
	// properties on the band's override.
	this.ultraGrid1.DisplayLayout.Bands[1].Override.BorderStyleRow = UIElementBorderStyle.Solid;
	this.ultraGrid1.DisplayLayout.Bands[1].Override.BorderStyleCell = UIElementBorderStyle.Solid;
	this.ultraGrid1.DisplayLayout.Bands[1].Override.BorderStyleHeader = UIElementBorderStyle.Solid;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also