我尝试检查在DataGridViewComboBoxCell
Dim status As Double
For x As Integer = 0 To ATCGRID.Rows.Count - 1
If ATCGRID.Rows(x).Cells(2).Value = "Full" Then
status = 1
ElseIf ATCGRID.Rows(x).Cells(2).Value = "Empty" Then
status = 0
ElseIf ATCGRID.Rows(x).Cells(2).Value = "Half" Then
status = 0.5
End If
MessageBox.Show(status)
Next x
但它得到错误
Conversion from string "Full" to type "Double" is not valid.
我该如何解决这个问题?