Remove lines from datagrid

RATHI picture RATHI · Jun 1, 2012 · Viewed 19.3k times · Source

Can we remove the lines between every row of datagrid? so that it look like listview (so that only data should be there no lines in between two rows)

Answer

Fredrik Hedblad picture Fredrik Hedblad · Jun 1, 2012

You can toggle the visibility of the grid lines with GridLinesVisibility. To hide them, just set it to None

<DataGrid ...
          GridLinesVisibility="None"/>