Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am getting an issue in handling look up edit control [dropdown] in DevEx GridView for windows forms. There are 2 dropdowns in the grid, which are cascading dropdowns. Once the value of first dropdown is selected, second dropdown should populate the relevant values. However cascading is not happening even though I set the datasource of the second dropdown based on the selection in first one. Sample code given below.

VB
SetPlanDataSource(CType(CType(sender, DevExpress.XtraEditors.LookUpEdit).EditValue, Integer))   
        If _listOfPlans.Count = 0 Or IsNothing(_listOfPlans) Then 
            PlanRIlue.DataSource = Nothing 
        Else 
            PlanRIlue.DataSource = _listOfPlans 
        End If
Posted
Comments
Ezra Neil 4-Jan-13 3:57am    
I think you are assigning the datasource to the wrong LookUpEdit. I assume you have the same LookUpEdit in each row of the Datagrid, right?

If that is so then you will need to find the correct LookUpEdit control to assign to since all those LookUpEdit in the rows are an instance of whatever LookUpEdit you've declared.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900