How to hide the grid lines of a DataGridView? Winforms C#
You can try
MyGrid.CellBorderStyle = DataGridViewCellBorderStyle.None;
dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.None;
You Can Also Set this in DataGridView Properties,
Select DataGridView --> Properties --> CellBorderStyle change this to None.