Infragistics(R) NetAdvantage(R) Windows Forms
RowConnectorStyle Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : RowConnectorStyle Enumeration

Enum for specifying sibling row connector styles.

Syntax

Visual Basic (Declaration) 
Public Enum RowConnectorStyle 
   Inherits System.Enum
C# 
public enum RowConnectorStyle : System.Enum 

Members

MemberDescription
Dashed draw the connector line dashed
Default default style
Dotted draw the connector line dotted
Inset draw the connector line inset
None no connector lines
Raised draw the connector line raised
Solid draw the connector line solid

Example

Following code changes the default look of row connectors and rows.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button22_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button22.Click

      ' Set RowConnectorStyle and RowConnectorColor to change the appearance of row
      ' connectors. Row connectors are the lines that connect sibling rows and child
      ' rows to parent rows.
      Me.ultraGrid1.DisplayLayout.RowConnectorStyle = RowConnectorStyle.Solid
      Me.ultraGrid1.DisplayLayout.RowConnectorColor = Color.DarkRed

      ' You can set the row appearance and other appearances using the Override object
      ' off the layout.
      Me.ultraGrid1.DisplayLayout.Override.RowAppearance.BackColor = Color.LightYellow

  End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

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

	// Set RowConnectorStyle and RowConnectorColor to change the appearance of row
	// connectors. Row connectors are the lines that connect sibling rows and child
	// rows to parent rows.
	this.ultraGrid1.DisplayLayout.RowConnectorStyle = RowConnectorStyle.Solid;
	this.ultraGrid1.DisplayLayout.RowConnectorColor = Color.DarkRed;

	// You can set the row appearance and other appearances using the Override object
	// off the layout.
	this.ultraGrid1.DisplayLayout.Override.RowAppearance.BackColor = Color.LightYellow;

}

See Also