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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

keeping text visible in a Scrolling Covered Cell

Thread ID:





57088 Feb 26,2007 12:28 PM UTC Feb 27,2007 07:31 AM UTC WinForms 1
Tags: GridControl
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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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