1 Attachment(s)
Flexible grid cells (ListViewSubitem backcolor property)
Hi,
I'm currently working on a project that will need schedules management. It needs to be able to produce a table with different cell sizes.
I've tryed doing a listview object (details view), with an extended bgn color which would simulate a bigger cell size. But the bgn color seems to be applyable on rows only... I can't restrict it to a cell...
It's as if the Backcolor property of the ListVIewSubitem did no effect...
any help on this would be appreciated... :wave:
Re: Flexible grid cells (ListViewSubitem backcolor property)
since you are using .NET 2.0, you could set ownerdraw to true for the listview, which will then raise the paint events so you can draw the items yourself using whatever colors you want.
Re: Flexible grid cells (ListViewSubitem backcolor property)
Nevermind, found what I was looking for: I just needed to set the UseItemStyleForSubItems of each ListViewItem set to false for it to work... :rolleyes: