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:
ABBZAAFG
Is there any possibility to have a correct sort?
Thanks VALERIO
HI farmproject,
I am having trouble reproducing this issue.
Can you tell me what build lf NetAdvantage you are using?
Sincerely, MattDeveloper Support Engineer
Hello Matt, the version is 11.1.20111.1002
Actually the sort on comboboxes works correctly if they're bound to the same source (suppose I have a column "Currency" that has an underlying int value from our db and a corresponding description as string). The problem arises when I load different sources for the same column (note however that the underlying object class is always the same (say "myClass" that have an int field and a string field, what is changing is just the datasource)).
Valerio