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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -