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

keeping text visible in a Scrolling Covered Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

57088 Feb 26,2007 12:28 PM UTC Feb 27,2007 07:31 AM UTC Windows Forms 1
loading
Tags: GridControl
ralph_lachance
Asked On February 26, 2007 12:28 PM UTC

Hello all:

We have a situation where a large covered cell spans several columns that are allowed to scroll. There are frozen columns to the left, but this "banner cell" does not include any of the frozen cols, it only spans the scrollable area.

The covered region is, in effect, a header whose text is intended to span those scrollable columns that are ~visible~.

Of course, it doesn't work that way, when the scrollable area moves, our header in the covered range scrolls out of sight.

I imagine we can use the DrawCellDisplayText to
place our header text so that it is always visible, reagardlees of where the region is scrolled.

Do do that, I would need to know the X coordinate at the actual left edge left edge of the visible area when the covered cell has scrolled however - I'm not sure how to get that...

can anyone help?


btw: It turns out that we;re using HorizontalTextAlignment.Left, but there are enough scrollable columns that whatever alignment we use, text in the covered region will scroll out of sight.

Administrator [Syncfusion]
Replied On February 27, 2007 07:31 AM UTC

It may be easier to use QueryCoveredRange and PrepareViewStyleInfo to dynamcially provide the covered range and text that you want to see. To prevent the text from flashing as you scroll, you can can use LeftColChanging and LeftColChanged. Here is a sample.

http://www.syncfusion.com/Support/user/uploads/WindowsApplication94_d364393b.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

;