ListView
-
Couple of questions about ListView: Is there a way to make column headers invisible? Is there a way to increase the padding between rows? I have long text inside of some cells. How do I make the text wrap around and the cell height grow to make all the text visible? (instead of having the text all in one line and having to resize the column to read all of it.) Thanks, Elena
-
Couple of questions about ListView: Is there a way to make column headers invisible? Is there a way to increase the padding between rows? I have long text inside of some cells. How do I make the text wrap around and the cell height grow to make all the text visible? (instead of having the text all in one line and having to resize the column to read all of it.) Thanks, Elena
The first is simple: set
ListView.HeaderStyle
toColumnHeaderStyle.None
. For the latter, I urge you to search CodeProject for "ListView" or something simple and browse the results. There have been several articles detailing this. It's not an easy thing to handle, since you have to go back to handling windows messages, declaring structs, and interoperating with unmanaged code using P/Invoke for functions likeSendMessage
. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]