Hi to all. Is it possible to hide the scrollbars in an UltraListView control? If so, which property is used to achieve this? I am unable to find anything. FYI, I am creating a form with an UltraListView which is to show one row for each day-of-the-week and hence the form does not need to be resizable - thus I do not require scrollbars in my UltraListView control.
There is no way to hide the scrollbars through the public object model. You could use the IUIElementCreationFilter interface to remove the elements, but the caviat is that the metrics calculation routines don;t know about this so they will still carve out space for them, making that space unavailable to items.
Note that the scrollbars only appear when they are necessary, so if the combined item sizes don't exceed the size of the viewable area, they will not appear.
Has this changed at all since the last update? I am also in a situation where I have replaced the scrolling function with custom buttons and I really can't afford to have the scroll bar taking up screen space.
Actually I meant that you create a new class that inherits the UltraListView class. D'oh.
No problem. If you do end up going down the path of using a creation filter then I would recommend that you create a new control (e.g. UltraListViewEx class) that overrides the UltraListView class and then use it as necessary. It can make it easier to compartmentalize your code for the creation filter and as well as get the ability to override any of the protected methods of the UltraListView class, which can sometimes be extremely useful. Good luck.
Thanks for the pointer. I'll see if I can get anywhere -- otherwise may just have to push back and say "You don't REALLY want to do this, do you?!"
No, I was not able to hide the scrollbars via anything other than a Creation Filter. In the end I just made sure that the height of the UltraListView was enough to show my seven day-of-week rows plus one. This satisfied my requirement but it obviously won't suit yours. From what you have said I believe a Creation Filter would be the best solution for your problem.