DataGridView drop down cell
I am able to successfully get a value from a datagridview using the following code:
Code:
MsgBox(Files.Item(4, i).Value)
When the cell has a drop down, I am not able to get the value, it just comes back blank.
How can I get the value from a drop down box?
Re: DataGridView drop down cell
The Value is the value of the cell regardless of its type. If the Value property is Nothing then the cell has no value in it. You might like to take a look at this to get a better understanding of how ComboBoxes work in DataGridViews.
Re: DataGridView drop down cell
I got it! It was I guess the value wasn't really set...