How to hide the grid lines of a DataGridView? Winforms C#

Viewed 35622

How to hide the grid lines of a DataGridView?

I have searched the internet but found no solutions on this. Please help, thanks.

5 Answers

you can also try this one

this.dataGridView1.AdvancedCellBorderStyle.All = DataGridViewAdvancedCellBorderStyle.None;
TableView view = new TableView();
view.HorizontalGridLineThickness = 1;
view.VerticalGridLineThickness = 1;
view.HorizontalGridLineBrush = Brushes.Orange;
view.VerticalGridLineBrush = Brushes.Orange;
dataGridControl.View = view;

try this code.....its very useful #Gawtam

Related