EnhancedList Problem


Author
Message
Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
Hi Trent,

Columns are populated generically from the business object allfieldslist.

I would use the Listview but I need an autocolumnwidth capability that I can't see on the list view.

thanks

Geoff.

Geoff Hirst
Geoff Hirst
StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)StrataFrame User (219 reputation)
Group: Forum Members
Posts: 123, Visits: 3.5K
hi,

ok, moved on a fair bit.

First up. The listview can have an autocolumnwidth. Populate your LV THEN set the columnwidth to -1 or -2. -2 did it for me. However, I can't use the LV because I need to export to PDF, and Excel etc. Possible enhancement chaps? Smile.

So, back to the Enhancedlist. You need to set additional properties when you add columns programmatically. The properties I had omitted were

.Visible = True ' Doh, - defaults to false

.VisibleIndex = something other than the default of -1 ' doh

.Width = something other than 0 ' doh - why I figured it would default to 60 like everything else seems to do I don't know.

Magically, columns appear.

Almost there now.

thanks for the contributions.

Geoff.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search