We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Scrollbars

Im trying to size one of my columns to take up the spare room in the grid. I can calculate the remaining room ok but I cant find out how to determine if the scrollbars are currently showing or get the width of the scrollbar. If I knew the scrollbar was active then I could subtract its width from the remaining to size my stretchy column without having a horizontal scrollbar. Would I also be right in saying that to resize the column when the grid is resize I would need to handle an event for the resizing of the grid? Thanks, Mark

3 Replies

AD Administrator Syncfusion Team May 27, 2004 01:03 PM UTC

If you use grid.ClientSize, it will automatically reflect whether or not scrollbars are present. So, you do not have to worry about when/if a scrollbar is visible if you use grid.ClientSize.Width and grid.ClientSize.Height in your calculations. If you want the right column to fill the cleint area are, check out these forum threads. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=2699 http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=10560

AD Administrator Syncfusion Team May 27, 2004 01:22 PM UTC

Thanks for the reply. I am getting the width of my grid control using "Grid.Size.Width" I cant seem to find the right way to reference "Grid.ClientSize". Any ideas?

AD Administrator Syncfusion Team May 27, 2004 01:28 PM UTC

Hi Ignore last post was going made. Grid.ClientSize does not appear on the intellisense dropdown but you can still reference it. Apologies for stupidity.

Live Chat Icon For mobile
Up arrow icon