You can disable cell highlighting by setting the MarqueeStyle and SelectedStyle properties. To highlight the row of the selected cell, set the MarqueeStyle property to NoMarquee. See Highlighting the Current Row or Cell for details. To disable the selected style, change the SelectedStyle property's attributes.
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.NoMarquee |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.NoMarquee; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.SelectedStyle.ForeColor = Color.Black |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.SelectedStyle.ForeColor = Color.Black; |
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBGrid1.Selected.BackColor = Color.Transparent |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBGrid1.Selected.BackColor = Color.Transparent; |
Selected cells, rows, and columns will no longer display any indicating highlighting.