How can i disable my button column in datagridview

  • Thread starter Thread starter euchan09
  • Start date Start date
E

euchan09

Guest
hello!

how can i disable button in my datagridview if this code executed:

Private Sub BunifuCustomDataGrid1_CellFormatting(sender As Object, e As DataGridViewCellFormattingEventArgs) Handles BunifuCustomDataGrid1.CellFormatting
For i As Integer = 0 To BunifuCustomDataGrid1.Rows.Count - 1
If BunifuCustomDataGrid1.Rows(i).Cells(8).Value = "Not Available" Then
BunifuCustomDataGrid1.Rows(i).DefaultCellStyle.BackColor = Color.Red
BunifuCustomDataGrid1.Rows(i).DefaultCellStyle.ForeColor = Color.Black

End If
Next


next to cell(8) is the column for button that i want to disable. Can anyone help me?

Thank you!

Continue reading...
 
Back
Top