Change datagridview combobox column to listindex = -1
Posted on 2010-11-16
I have a form with a datagridview populated from a data table. 1 of the columns is a combobox.
Let's say for example there are only 2 columns (the first is a textbox that displays "Name" and the second is a combobox which displays "City"). Right now it shows:
Joe Johnson Miami
Bob Smith Boston
My question is how can I set the "City" combobox to listindex -1 after the grid loads so that the city is blank and the user is forced to make a selection. Again, this is a bound dgv