I have a DataGridView which was the subject of a previous question (link). But sometimes the Button is null. This is fine. But if it is null, is th
DataGridView
null
Padding didn't work for me. I think it is easier and cleaner to just make the cell an empty text cell. VB, but you get the idea:
Dim oEmptyTextCell As New DataGridViewTextBoxCell() oEmptyTextCell.Value = String.Empty oRow.Cells(i) = oEmptyTextCell