Is there a way to read if the vertical scrollbar is currently visible in an UltraGrid?
i.e. as Readonly properties: UltraGrid.VerticalScrollbar.Visible = T/F, UltraGrid.HorizontalScrollbar.Visible = T/F
Thanks,~Kelly
HOWTO:How can I determine if an UltraWinGrid is displaying a Vertical Scrollbar?
Hi
The functionality provided in this article to check if it has the scrollbar is nice but in the winform if the form has the vertical scrollbar and then the verticalscroll bar removes (may be by deleting some rows or may be by expanding the form), this function still show that vertical scrollbar is visible.
*http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2258
Hi,
The code you linked to here is checking for the existance of a ScrollBarUIElement. So it will work correctly, indicating whether the element is there or not.
If you are getting strange results, then my best guess is that it's a problem of where you are calling the method. If, for example, you delete a row from the grid in your code and then immediately check this method, it won't work, because the grid doesn't remove the scrollbar element until the next time it paints. You could get around this by forcing the grid to paint because you check the elements by calling grid.Update.