|
-
Jan 19th, 2017, 09:59 AM
#7
Thread Starter
Hyperactive Member
Re: Populate datagridview combobox based on index
 Originally Posted by wes4dbt
Are you having trouble retrieving the store index or displaying the information in the CB, or both.
One thing you need to know is a DGV comboBox column does not have a SelectedIndex or SelectedValue property that you can set. You must set the dgv.row(someRow).Cells(somecolumn).Value = "something"
Here a good link, http://stackoverflow.com/questions/2...ridview-vb-net
I am having trouble displaying the information in the CB. I can retrieve the data fine, just can't populate the combobox using the index.
Is there a way around not having a selectedindex? Would using ENUM work? (not really sure how to do this either!)
I will take a look at the link. Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|