How to get the datagrid rows and set the combobox listindex
Posted on 2005-04-13
In VB6 I was able to get the total number of data rows that the grid contained and I was also able to set the combobox listindex to -1 (blank) after both items were populated. These features seem to have been ommitted in VB.NET. I need to be able to set the selected row of a bound and populated datagrid to its last row. I also need to be able to set a bound combo box's listindex or equivalent to -1 or to the index before the first item in its collection. I have looked everywhere on this site and in my books for these and can't find them. I'm a newby to VB.NET and don't understand classes yet, so go easy on me.
I have no trouble populating the datagrid from an Access DB and picking out distinct items fot the combobox, but this other thing stumps me!
Thanks in abvance for your help.