I've got a dataset with the following relations:
1) Top
1.1) Related Table 1
1.2) Related Table 2
1.2.1) Related Table 2.1
1.2.1) Related Table 2.2...
I'd like to show the Related Table 1 (1.1) as the first band under the top band, but the designer forces it below 2.1. Can I change the order programmatically?
Thanks.
Hi,
SAbady said:I'd like to show the Related Table 1 (1.1) as the first band under the top band, but the designer forces it below 2.1. Can I change the order programmatically?
You lost me here. What is "2.1"?
You can control the order of sibling bands in the grid using the SortIndex property on the band.
So, for example, if you want 1.2 to appear above 1.1, then you could set the SortIndex in each band to any values you want as long as the value you assign to the 1.2 band are lower than the value you assign to the 1.1 band.
I think SortIndex was what I was looking for. Sorry, I was unclear in my description. I'll repost if it doesn't resolve the issue.