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

Grid Scrollbars

Thread ID:

Created:

Updated:

Platform:

Replies:

14472 May 27,2004 08:35 AM May 27,2004 09:28 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 27, 2004 08:35 AM

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 09:03 AM

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 09:22 AM

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 09:28 AM

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.

CONFIRMATION

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.

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.

;