Hide or change the cell border colors

Posted by: scansoftpos on 8 September 2017, 11:27 pm EST

  • Posted 8 September 2017, 11:27 pm EST

    How can I change the cell border color column divider
  • Replied 8 September 2017, 11:27 pm EST

    placed 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
    Next
  • Replied 8 September 2017, 11:27 pm EST

    Hello,

    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.

    Thanks,
    Manpreet Kaur
  • 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?

    Thank you.
  • Marked as Answer

    Replied 15 September 2017, 7:10 am EST

    Hello!

    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.

    Regards,
    Meenakshi
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels