Hi, together,
I have three tables in my dataset "myDs".
one parent table T1 and two child tables Ta, and Tb.
So there are two relations in this dataset:
Relation 1: T1 => Ta
Relation 2: T1 => Tb
If I set
myUltraGrid.DataSource = myDs;
then it shows:
Band 0: T1
Band 1: Ta
Band 2: Tb
so well all correct!
But my question is:
how can I change the band index, so that I can get the following result:
Band 1: Tb
Band 2: Ta
Many thanks in advance!
P.S. It works, if I add the Relation 2 (T1 => Tb) at first into dataset, then add the Relation 1 (T1 => Ta)
but can we use any method, such like: myUltraGrid.DisplayLayout.Band[1].VisibleIndex = 0?
Hi,
The grid gets the order of the bands from the BindingManager and there is currently no way to change the order within the grid.
The good news is that this feature will be added to the grid in NetAdvantage 2009 vol. 1. :)
Hi, Mike,
thanks for your replay. I am looking forward.
Regards
no, it does not work. I collect data from database and fill them into dataset, the relations of tables exist in database. Now the only thing I can do is just to add relations programatically.
Best wishes
When you work with objects, changing properties order changes band order accordingly. Doesn't it work for DataSet too?