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.

Calculating total visible cell widths and heights

Thread ID:

Created:

Updated:

Platform:

Replies:

13577 May 3,2004 07:45 AM May 3,2004 08:21 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 3, 2004 07:45 AM

I''m trying to figure out how to calculate the total height and width of the visible cells in a scrollable grid. I need to know the total height and width including the any fixed header cells. I was originally using the GridViewLayout.GetColRangeWidth() (and the equivalent for rows), but this weekend I finally upgraded from 1.5 to 2.0.5 and found that these methods have been deprecated. Thanks. Pete

Administrator [Syncfusion]
Replied On May 3, 2004 08:18 AM

Try int width = grid.ColWidths.GetTotal(0, grid.Cols.FrozenCount) + grid.ColWidths.GetTotal(grid.LeftColIndex, grid.Viewlayout.LastVisibleCol); There are similar propeties/methods for RowHeights.

Administrator [Syncfusion]
Replied On May 3, 2004 08:21 AM

Thanks Clay. That did it. Pete Davis >Try > >int width = grid.ColWidths.GetTotal(0, grid.Cols.FrozenCount) + grid.ColWidths.GetTotal(grid.LeftColIndex, grid.Viewlayout.LastVisibleCol); > > >There are similar propeties/methods for RowHeights.

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.

;