What is the best way to split column values ​​using datagrid

If I were writing my own HTML and posting the values ​​in a table, I would use css and border style using something like:

td{
     border-left : solid gray 1px;
}

      

0


source to share


2 answers


if you put this css style on your webpage you find your datagrid will use it as datagrid control generates html table!



of course, you can set the CssClass to the datagrid and style it just for it; you can mess around with datagridview string properties too, but css style is much easier to change / later.

+2


source


You can try using the gridrowstyle and alternatinggridrowstyle datagrid properties. I would suggest setting them to a CSS class as Steven suggests.



+1


source







All Articles