Version

DefaultSelectedForeColor Property

Gets or sets the default color used for the forecolor of selected cells in the grid.
Syntax
'Declaration
 
Public Property DefaultSelectedForeColor As Color
public Color DefaultSelectedForeColor {get; set;}
Example
Demonstrates how to set the DefaultSelectedBackColor and DefaultSelectedForeColor properties during the loading of a form.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.UltraGrid1.DisplayLayout.DefaultSelectedBackColor = Color.Black
    Me.UltraGrid1.DisplayLayout.DefaultSelectedForeColor = Color.Yellow
End Sub
private void Form1_Load(object sender, EventArgs e)
{
    this.ultraGrid1.DisplayLayout.DefaultSelectedBackColor = Color.Black;
    this.ultraGrid1.DisplayLayout.DefaultSelectedForeColor = Color.Yellow;
}
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