I'd like to know if there is a way to know if vertical scroll bar is displayed. I need to adjust column size based on if vertical scroll bar is shown or not. I don't want to use AutoFitStyle.ResizeAllColumns, due to some design resons. I also like to know how to get the width of vertical scroll bar. Thanks.
I'm not sure if there's a better way to do it, but one approach might be to check:
this.ultraGrid1.ActiveRowScrollRegion.VisibleRows.Count == this.ultraGrid1.Rows.Count
As for the scrollbar width, this might be determined by the system settings (though I'm not certain of this), so you could try looking at "SystemInformation.VerticalScrollBarWidth".
-Matt
Thank you for your quick response. I tried this approach, but my grid has multiple bands, this.ultraGrid1.Rows.Count only get the the rows from first band. Is there an easier way to know how much total rows a grid has instead of looping through all bands?