Datagrid scrollbar/rowdetails issue

Sep 15, 2009 at 7:49 PM

Hi

I have a datagrid which shows data from a table (of cities)

It has a RowDetails section showing data from a second table (of streets in the selected city), which I switch visible using a button.

If I fill the grid with many records, the vertical scrollbar shows up (because the cities records exceed the visible space), to achieve this I do not have to set the VerticalScrollBarVisibility property.

Now the problem: If I only fill in few cities (so that the cities records does not fill the visible space), the scrollbar does not show up, even if expanding the RowDetails (the streets) would fill more than enough street records for the visible part of the grid

When I set VerticalScrollBarVisibility it does not help.

Is this a known issue?

Regards

Klaus

 

Dec 17, 2009 at 12:57 PM

Hi Klaus

Try to put a MaxHeight or Height on your RowDetail section so that when the rows exceed the height you had set then the scroll bar will appear.

 

Claudiu