Groups | Blog | Home
all groups > vb.net controls > september 2005 >

vb.net controls : setting values in dropdown in datagrid


Marc Miller
9/10/2005 1:05:07 PM
Hi to all,

I have an 'employees' datagrid which contains company numbers as labels.
When the user clicks 'Update', I
have dropdown lists as edititems for the company numbers and populate them
from a company table so that
the user can change the existing company number. The problem is that the
dropdowns show the first value
from the company table and I want it to show the value from the employee
record.

I tried to set the SelectedValue of the dropdowns this in datagrid
EditCommand, but the dropdowns are not accessible there. Can anyone tell me
where I can access these values?

I hope this was not tooooo confusing.

TIA,
Marc Miller

Ken Tucker [MVP]
9/11/2005 7:36:19 AM
Hi,

http://www.windowsformsdatagridhelp.com/default.aspx?ID=af5ec1a9-bd98-4556-adf9-3866d4936de0

Ken
-------------------
[quoted text, click to view]

AddThis Social Bookmark Button