I try to check which data is selected in a datagridview combobox
But it shows error
How i check this?? Please check this code and correct me....
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
But it shows error
Conversion from string "Full" to type "Double" is not valid.
How i check this?? Please check this code and correct me....