Problem with ListView Control in .NET 2005
- From: "O.B." <funkjunk@xxxxxxxxxxxxx>
- Date: Fri, 15 Jun 2007 10:51:36 -0700
Found an interesting bug in Visual Studio .NET 2005 for C#:
Create a list view.
Add 4 columns.
Compile and execute to verify that 4 columns appear.
Stop execution.
Edit the "Columns" from within the Properties window.
Bug 1:
Use the down arrow to move the 3rd column to the 4th position.
Compile and execute program.
You'll see that the column order is unchanged.
Bug 2:
Go back to the IDE and change the 4th column's DisplayIndex to 3. The
IDE will automatically update the 3rd column's DisplayIndex to 2 (but
only within the IDE).
Compile and execute program.
You'll see that the column order is unchanged.
In Bug 2, the IDE adds new code for only the 4th column,
"columnC.DisplayIndex = 3" but leaves the order of declaration as is.
Nor does the IDE add code for the DisplayIndex (in code) of the other
3 columns. So when the program executes, it displays the columns in
the order in which they were instantiated in code.
.
- Prev by Date: Re: Require base class member to be populated by derived classes.
- Next by Date: Re: Require base class member to be populated by derived classes.
- Previous by thread: Re: docking control
- Next by thread: How to check object exists if it raises error?
- Index(es):
Relevant Pages
|