Hi all,
I have a list control with LVS_REPORT & LVS_EX_GRIDLINES style.
My problem is that when the list control is disabled the grid lines disapear.
Anyone know how to "keep" the grid lines even when the control is disabled?
Thank you!!
Printable View
Hi all,
I have a list control with LVS_REPORT & LVS_EX_GRIDLINES style.
My problem is that when the list control is disabled the grid lines disapear.
Anyone know how to "keep" the grid lines even when the control is disabled?
Thank you!!
Does it also happen for the standard Windows (no themes) style?
(Sorry, I use grid lines in list control very seldom, and I never tried to disable my list controls, so I don't know how it works)
I don't commonly use grid lines in and disabling of list controls either, and in fact never have used both on the same list control. However, my suspicion is that your grid lines aren't actually gone. It's rather that the default background color of a disabled list control is the default control background color, which happens to be the same as the default grid line color, effectively making the grid lines invisible when the list control gets disabled. So, unless I'm mistaken, one possible solution for you is to simply change the grid line color.