I want to get a blank row. So I want to hide grid lines in a specific row. How can I do this?
There is
Grid.CellBorderStyle = DataGridViewCellBorderStyle.None;
but this can be applied to the grid.
Untested, but you should be able to get what you need by handling the CellPainting event and excluding the DataGridViewParts.Border
e.Paint(e.ClipBounds, DataGridViewPaintParts.All ^ DataGridViewPaintParts.Border);
e.Handled = true;
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