Click here to Skip to main content
13,089,943 members (42,459 online)
Rate this:
Please Sign up or sign in to vote.
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.

SetPlanDataSource(CType(CType(sender, DevExpress.XtraEditors.LookUpEdit).EditValue, Integer))   
        If _listOfPlans.Count = 0 Or IsNothing(_listOfPlans) Then 
            PlanRIlue.DataSource = Nothing 
            PlanRIlue.DataSource = _listOfPlans 
        End If
Posted 18-Oct-12 22:40pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 19 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100