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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Scrollbars

Thread ID:





14472 May 27,2004 12:35 PM UTC May 27,2004 01:28 PM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On May 27, 2004 12:35 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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?

Administrator [Syncfusion]
Replied On 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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon