Infragistics(R) NetAdvantage(R) Windows Forms
DefaultSelectedForeColor Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace > UltraGridLayout Class : DefaultSelectedForeColor Property

Gets or sets the default color used for the forecolor of selected cells in the grid.


Visual Basic (Declaration) 
Public Property DefaultSelectedForeColor As Color
public Color DefaultSelectedForeColor {get; set;}


Demonstrates how to set the DefaultSelectedBackColor and DefaultSelectedForeColor properties during the loading of a form.

Visual BasicCopy Code
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
C#Copy Code
private void Form1_Load(object sender, EventArgs e)
    this.ultraGrid1.DisplayLayout.DefaultSelectedBackColor = Color.Black;
    this.ultraGrid1.DisplayLayout.DefaultSelectedForeColor = Color.Yellow;

See Also