Posted 8 September 2017, 11:27 pm ESTHow can I change the cell border color column divider
Hide or change the cell border colors
Posted by: scansoftpos on 8 September 2017, 11:27 pm EST
Replied 8 September 2017, 11:27 pm ESTplaced this code on load event
Dim i As Integer
For i = 0 To GridCustomers.Columns.Count() - 1
"gridName".Splits(0).DisplayColumns(i).ColumnDivider.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.None
Replied 8 September 2017, 11:27 pm ESTHello,
Yes, you are right you would need to set the Style or Color property of the column divider to either hide the column divider or change its color respectively. Here is the code for the same:
//Change the color of the Column divider border
c1TrueDBGrid1.Splits(0).DisplayColumns(0).ColumnDivider.Color = Color.Red
//Hide the column divider border
c1TrueDBGrid1.Splits(0).DisplayColumns(1).ColumnDivider.Style = C1.Win.C1TrueDBGrid.LineStyleEnum.None
Hope it helps.
Replied 13 September 2017, 7:55 am EST*Can* I change the Column Divider Color in the theme editor? Or only by code as shown?
Marked as Answer
Replied 15 September 2017, 7:10 am ESTHello!
It won't be possible to change column divider colour in the theme editor/designer. However, you can use the above suggested approach. in the scenario
In case of any other query, do let us know.