Click here to Skip to main content
11,716,938 members (77,629 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Windows VB.NET Forms
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 at 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
0 Sergey Alexandrovich Kryukov 449
1 OriginalGriff 265
2 F-ES Sitecore 210
3 Maciej Los 135
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,144
1 Maciej Los 509
2 OriginalGriff 505
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 19 Oct 2012
Copyright © CodeProject, 1999-2015
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