Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
How to set the selected items in XAM Combo editor.
posted

Need to set the selected item in XamComboEditor Xamgrid.i have attached the source code please find it.Please help me urgent..

Eg:

I have 10 rows in xamgrid and need to set combo selected items like below table

Row comboseledted item
1 c2
2 c7
3 c6
4 c3
5 c1
6 c9
7 c10
8 c5
9 c4
10 c8
DataGridWithCombo.zip
Parents
No Data
Reply
  • 34510
    Verified Answer
    Offline posted

    Hello Raj,

    Your PDUser class should have a SelectedClinicID property which will represent which clinic is currently selected.  Then in your EditorStyle for the XamComboEditor you can set the ValuePath property to ClinicID and bind the Value property to "DataItem.SelectedClinicID".  Take a look at the attached sample.  From here, you just need to set the SelectedClinicID to whatever you want and it will update the XamComboEditor.

    DataGridWithCombo.zip
Children