How can I add vertical lines to separate columns?

Hi,

I'm new in Syncfusion and with the DataGrid component.

I would like to separate the columns with vertical lines but couldn't find an example on how to do it.

Can someone give me an idea?

Thank you


1 Reply

MS Monisha Saravanan Syncfusion Team December 1, 2022 04:47 AM UTC

Hi Bertrand,


Query: “I would like to separate the columns with vertical lines but couldn't find an example on how to do it.”


Greetings from Syncfusion support.


We would like to inform that we can set line to the DataGrid by setting GridLines property as Both. Also we have documented this topic in the below UG section. Kindly refer the attached code snippet and documentation for your reference.


<SfGrid DataSource="@Orders" GridLines="GridLine.Both" Height="315">

    <GridColumns>

       

    </GridColumns>

</SfGrid>

 



Reference: https://blazor.syncfusion.com/documentation/datagrid/cell#datagrid-lines


Please let us know if you have any concerns.


Regards,

Monisha


Loader.
Up arrow icon