Resizing listview column at run time


Author
Message
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I have a column in a listview ( not a Stratalistview )  that may not be relevant depending on how I pull the data.  If not, I would like to set its width to 0.

I thought I could say

this.lvCompare.Columns["colMyCol"].Width = 0;

but it tells me it is not set to an instance of an object.  I tried it after the requery but no luck

In debugger I see no properties exposed at all on the columns collection. 

What's the trick.?   Anyone have an example of how to do this? 

( remember, traditional SF listview,not Stratalistview )

TIA
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Charles R Hankey - 13 Years Ago
Ivan George Borges - 13 Years Ago
Charles R Hankey - 13 Years Ago
                 De nada. ;)
Ivan George Borges - 13 Years Ago
                 Using index worked great !
Charles R Hankey - 13 Years Ago
                     Glad to hear that! :cool:
Ivan George Borges - 13 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search