How to hide the grid lines of a DataGridView?
I have searched the internet but found no solutions on this. Please help, thanks.
The DataGrid control is limited to displaying data from an external data source. The DataGridView control, however, can display unbound data stored in the control, data from a bound data source, or bound and unbound data together.
The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor.
You can try
MyGrid.CellBorderStyle = DataGridViewCellBorderStyle.None;
dataGridView1.CellBorderStyle = DataGridViewCellBorderStyle.None;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With