turrican
Active member
I have a windows form with a listbox and a datagrid. The listbox displays an entire column from a database in alphabetical order. I want to be able to select an item in the listbox and display the entire row from the database in the datagrid. I am trying to do a parameterized query using the listbox selected item. does that make sense.
Here is what I know:
It wont work. I keep getting messages saying that it must be IConvertible. I dont know what that means. If I populate the listbox at design time by hand with the collection property, it works perfect. This isnt what I want to do though because as I add more items to the database, the listbox collection needs to grow with it. My sql statements are working properly, I just neeed another push in the right direction. Again.
BTW, Im a Freshman now. Im stoked.
:
Here is what I know:
It wont work. I keep getting messages saying that it must be IConvertible. I dont know what that means. If I populate the listbox at design time by hand with the collection property, it works perfect. This isnt what I want to do though because as I add more items to the database, the listbox collection needs to grow with it. My sql statements are working properly, I just neeed another push in the right direction. Again.
BTW, Im a Freshman now. Im stoked.


