Click here to Skip to main content
Rate this: bad
good
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 
        Else 
            PlanRIlue.DataSource = _listOfPlans 
        End If
Posted 18-Oct-12 23:40pm
Comments
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 OriginalGriff 5,130
1 DamithSL 4,237
2 Maciej Los 3,700
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,846


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