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?
ADAdministrator 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.
ADAdministrator 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".
ADAdministrator Syncfusion Team May 27, 2004 01:28 PM UTC
Ignore last post was going made. Grid.ClientSize does not appear on the intellisense dropdown but you can still reference it.
Apologies for stupidity.