C# ListView Last Column Too Wide -


when list view's 'autoresizecolumns(...)' method called either 'none' or 'columncontent' parameters last column not expand fill entire panel, if 'autoresizecolumns(...)' called 'headersize' parameter last column expanded, looks odd if text centre or right aligned.

i've been able fix issue adding blank column end expand , contract necessary, leaving intended last column cover width of heading seems bit hackie. neater way it?

thanks.

last column expanded

preferred width

the columnheader can set adjust @ run time column contents or heading. can setting width property -2 (to autosize width of column)

or

listview1.autoresizecolumns(columnheaderautoresizestyle.headersize)


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -