RATHI
RATHI

Reputation: 5289

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)

Upvotes: 38

Views: 24892

Answers (2)

Merlin atZipNews
Merlin atZipNews

Reputation: 1

<asp:DataGrid ... GridLines="None">
<Columns>
</Columns>
</asp:DataGrid>

Upvotes: 0

Fredrik Hedblad
Fredrik Hedblad

Reputation: 84657

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

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

Upvotes: 75

Related Questions