mick
2009-09-16 23:18:30 UTC
I have a listbox whose Datasource is a DataView. When all of the items
appear in the listbox a horizontal scrollbar appears because some of them
are wider that the listbox (as it should of course).
Now if apply a filter to the Dataview the listbox still displays a scrollbar
even if the newly filtered items now fit in the listbox. Anyone know why and
how to stop it? Shouldnt it be automatic?
I`ve tried lb.Refresh() and lb.Invalidate() but that does nothing.
TIA,
mick
appear in the listbox a horizontal scrollbar appears because some of them
are wider that the listbox (as it should of course).
Now if apply a filter to the Dataview the listbox still displays a scrollbar
even if the newly filtered items now fit in the listbox. Anyone know why and
how to stop it? Shouldnt it be automatic?
I`ve tried lb.Refresh() and lb.Invalidate() but that does nothing.
TIA,
mick