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.
Syncfusion Feedback

Horizontal scrollbar for 1 column

Thread ID:

Created:

Updated:

Platform:

Replies:

31606 Jul 11,2005 02:40 PM UTC Jul 11,2005 05:22 PM UTC Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On July 11, 2005 02:40 PM UTC

How can I put up a horizontal scroll bar at the bottom of a column, so ResizeToFit() does not expand the column width but creates an appropriate scrollbar to get into view the rightmost pixels?

Administrator [Syncfusion]
Replied On July 11, 2005 03:50 PM UTC

The only way I would know to easily do this would be to have this scrollable column be the last column on the right. Then you could make all the other columns frozen, and use pixel scrolling on the last one. this.grid.HScrollPixel = true; this.grid.Model.Cols.FrozenCount = this.grid.Model.ColCount - 1;

Administrator [Syncfusion]
Replied On July 11, 2005 04:17 PM UTC

Thanks, Clay, but I want the first column to be scrolled, where my treeview is. I was looking at the sample Windows\Grid.Windows\Samples\DataBound\Hierarchical\GDBGTreeLines and I was missing this functionality there as well.

Administrator [Syncfusion]
Replied On July 11, 2005 05:22 PM UTC

The only way I would know to do this is to dock a scrollbar at the bottom of a panel. Then dock a grid to the side of the panel and then dock-fill a 2nd grid. In the right-grid, display only the frozen columns. Then in the dockfill grid, display the single scrollable column. You can then handle events to sync the two grid up. You would also need to use a detached scroll as in the quickstart\scrollbars sample. Here is a very rought try at this. It would take additional time to polish the look. http://www.syncfusion.com/Support/user/uploads/GDBG_ScrollLeft_9dbfdc36.zip

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.

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

;