473,569 Members | 2,984 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listview Header Redraw (Bug?)

Hello All,

I am seeing something annoying with the listview.

I have a listview that spans an area greater than the
width of my form, and have a scrollbar that moves it left
and right. When I move the listview so the right-most
columns are visible on the form, they are not repainted.
I get a blank area where the column header should be.

I've tried "Listview.Refre sh()" and "Listview.Inval idate
()" when the scrollbar is moved, but nothing seems to
clean this up.

Just wondering if anybody else has seen similar behavior.

Thanks,
G72
Nov 17 '05 #1
0 1446

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1290
by: PHH | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run program, when I run program I choose first line (line with index = 0) but this line is not actived (draw border over that), after I click to another...
0
1899
by: WHITETIGER | last post by:
Help me, please, When I redraw a ListviewItem in Listview (redraw items with icon and text columms). I used SetStyle(ControlStyle.UserPaint, true) function. And I redraw finish and run program, when I run program I choose first line (line with index = 0) but this line is not actived (draw border over that), after I click to another...
0
1290
by: m. pollack | last post by:
Hi all, I am using a Listview with three columns, and would like to center-align the column header text. When I try to do this at design time with the properties editor, it won't allow me to set the leftmost column to center alignment -- it just snaps back to "left". I have tried overriding this in the C# code itself, but nothing works --...
0
940
by: Stephen Lamb | last post by:
When I add several items, 4000, to a ListView and rapidly move the vertical scroll bar from top to bottom several times with the mouse over a period of about 20 seconds, the ListView control seems to hang on redraw. Doing a Debug -> Break All halts the app but of course the call stack indicates that it is in non-user code. This happen in...
6
1526
by: ReMEn | last post by:
My question is this: How can I apply some kind of a function to a listview that allows it to sort by both string and numbers whenever a header is clicked? For example: ------------------- INDEX -------------------
4
3103
by: Samuel R. Neff | last post by:
I'm using this class to work around the ListView.Cursor bug in .NET 1.0/1.1. It fixes the bug as long as the user mouses around the client area of the listview but if the listview is in detail view and the user mouses over the header, the default cursor is displayed regardless of the Cursor property setting. Public Class MyListView...
3
2250
by: --== Alain ==-- | last post by:
Hi, I have some little issue when i want to redraw the columnHeader of my ListView. Basically i display a little arrow to show the sortOrder of each column. For sure only the clicked column is sorted. here is my code located in OnDrawColumnHeader overriden method: .... if(e->ColumnIndex == this->m_LastClickedColumn)
0
1087
by: --== Alain ==-- | last post by:
Hi, i was thinkging to override WNDPROC of my ListView control, in order to control how the headers and items will be redrawn. My purpose is to : - keep the header format (horizontal and vertical alignment) - place a sorting arrow on the extrem right of the header (close to the header border and not directly after the header text) -...
1
957
by: --== Alain ==-- | last post by:
Hi, I'm still working with my ListView custom control and i would like to have some confirmation and help. 1. If i understood well the OnPaint event is never thrown to ListView control ? I tried to override it but i've seen that never it is run. Therefore, as i want to redraw the columns header, i was thinking to
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7681
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.