Hi,
I have an ultragrid with three bands (added relation).
Bands[2] is having 1400 rows.
When I expand Band[2] all the 1400 rows are shown without vertical scroll.
I would like to have a vertical scroll in Band[2] itself and it should show only 10 records in the visible region.
A solution for this is much appreciated.
Thanks
Hi Thangachan,
There's no way to have a scrollbar on just a single band or a single collection of rows. The scrollbar applies to the entire grid (or to entire scroll region).
So I'm a little confused by your original question. Are you saying that your grid isn't showing a scrollbar when you expand the child band? If that's the case, then the only explanation is that you must have turned off the scrollbars explicitly by setting the this.ultraGrid1.DisplayLayout.Scrollbars property.
If you have a vertical scrollbar, then take a look at the very top of the scrollbar. There's a little button there above the scroll arrow that the user can drag to create a RowScrollRegion. There's a similiar button on the left edge of the horizontal scrollbar.
If you are not seeing these buttons, then once again, it's because your code is turning them off. Turning them off would look something like this:
this.ultraGrid1.DisplayLayout.MaxRowScrollRegions = 1;
If you want to create a RowScrollRegion in code, you would do something like this:
this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split();
Frankly, I'm not really sure that's going to help you with what you are trying to achieve. This isn't going to give you a band-specific scrollbar like you want. But in theory, you could keep the parent row in view in one RowScrollRegion while scrolling the child rows in another.
any update ?
Hi Milko,
I am trying to understand RowScrollRefions.
Can you please attach a sample project with an ultragrid having 3 bands and bands[2] having more number of rows using RowScrollRefions ?
Thanks in advance
Hello Thangachan,
Thank you for posting in our form.
Right now UltraGrid does not supports per band scrollbars. One possible workaround is to use RowScrollRefions in your application. This will allow the end user to scroll different parts of the grid simultaneously.
Please let me know if you have any additional questions about this matter.