To highlight the row of the selected cell, set the MarqueeStyle property to HighlightRow. This can be set either in the designer or in code.
Complete the following steps to highlight the row of the selected cell using the designer:
To highlight the row of the selected cell using code, complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.HighLightRowStyle.ForeColor = Color.WhiteSmoke |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.HighLightRowStyle.ForeColor = Color.WhiteSmoke; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Navy |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.HighLightRowStyle.BackColor = Color.Navy; |
When a cell is selected, the entire row will highlight with the text in WhiteSmoke and the highlight in Navy: