Hi,

At run time, if I Click ToolBarButton1 - I can still check/uncheck the checkbox at Cell 3 even if the value is "Old" at Cell 2.

Thanks


Code:
If e.Button Is ToolBarButton1 Then
Dim irowNo As Integer
            For irowNo = 0 To DgvPracExcl.Rows.Count - 1
                If DgvPracExcl.Rows(irowNo).Cells(2).ToString() = "old" Then
                    DgvPracExcl.Rows(irowNo).Cells(3).ReadOnly = True
                Else
                    DgvPracExcl.Rows(irowNo).Cells(3).ReadOnly = False
                End If

            Next irowNo

   End If