C# DataGridViewCheckBoxColumn Hide/Gray-Out

后端 未结 3 784
既然无缘
既然无缘 2021-01-13 17:21

I have a DataGridView with several columns and several rows of data. One of the columns is a DataGridViewCheckBoxColumn and (based on the other dat

3条回答
  •  攒了一身酷
    2021-01-13 17:58

    http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcheckboxcell.aspx

    DataGridViewCheckBoxCell.Visible = false;
    

    Edit: Oh, wait, it's read only. Derp.

    In which case, try replacing the cell with an empty DataGridViewTextBoxCell.

提交回复
热议问题