Search code examples
wpfwpfdatagrid

Remove lines from datagrid


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)


Solution

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

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