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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -