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
1080
sorting grid with combobox
posted

Hello, I have a xamDatagrid with a combobox field.

In the insert phase the data source bound to the combo (value as  int, display as string)  dynamically changes, depending on the selection in another combobox field.


Example:
Field 1       Combo1       Combo2 (val, desc)
-----------------------------------------------------------
Desc1       Cb1                Cb1_1              Z        (datasource 1)  
Desc2       Cb1                Cb1_2              B        (datasource 1)
Desc3       Cb2                Cb2_1              AA     (datasource 2)
Desc4       Cb1                Cb1_3              AB     (datasource 1)
Desc5       Cb2                Cb2_2              F        (datasource 2)   
Desc6       Cb3                Cb3_4              G        (datasource 3)    


When I try to sort the combobox field it appears that the sorting is not correctly applied, that is that the sorting method seems to sort  inside the single datasources.
The ascending result is:

AB
B
Z
AA
F
G

Is there any possibility to have a correct sort?

Thanks VALERIO