Hi all,
I'm using a System.Windows.Controls. DataGrid (WPF) and need to know when the visibility of the horizontal ScrollBar is changing.
I was searching the net but couldn't find a solution. Is there any event fired? By ScrollViewer or ScrollBar? And how to catch it?
Thanks for any hint
maxmeier
Loading
R JPosted Jun 15, 2011, 1:55 AM
If you mention columnwidth property for datagrid as star (*), the widths of all columns will be in equal size and so horizontal scrollviewr will not appear. Now if you change the column width with mouse by dragging, then horizontal scrollbar will appear immediately. So i thought this horizontal scroll viewr visibility depends on columnwidthchanged event.
While the datagrid is loading, horizontal scroll viewr will adjust automatically based on number of columns and its width.
I hope this will help you.
Regards
R.J