Tuesday, January 27, 2015

Hide DataGridview Checkbox in Specific Cells

I just wanna share this piece of code which will help someone out there that is having a problem hiding a specific checkbox cell in a datagridview.

This code may not be the best solution out there. But, this piece of code help me achieve my requirements.

With Datagridview1.Rows(rowIndex)
            .Cells(CheckBoxColName) = New DataGridViewTextBoxCell
            .Cells(CheckBoxColName).Value = String.Empty
 End With

Sample:



Let me know if you have the most best solution by commenting below.

No comments:

Post a Comment