Link to home
Start Free TrialLog in
Avatar of ict-torquilclark
ict-torquilclark

asked on

Manaual DataBinging on a DataGridView Column

I have a datagridview that has a comboboxColumn

How do i programatically set the values of the dropdown items to those in a pre loaded datatable?

Avatar of strickdd
strickdd
Flag of United States of America image

Bind the selected value to a hidden field. In the OnDataBound event, loop through the rows of the gridview and apply the values. Finally set the selected value based on the hidden field.
Avatar of ict-torquilclark
ict-torquilclark

ASKER

I need to do complex data binding with a Display Member and a value member.

How could i do that?
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial