Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Grid - Column width and ScrollViewer

$
0
0

Hi

I am having a problem with the width, high and the ScrollViewer

I am defining

<Grid><Grid.ColumnDefinitions><ColumnDefinition Width="*" /></Grid.ColumnDefinitions><Grid.RowDefinitions><RowDefinition Height="*" /></Grid.RowDefinitions><ScrollViewer ScrollViewer.HorizontalScrollBarVisibility="Auto" 
			Grid.Column="0" Grid.Row="0"
			ScrollViewer.VerticalScrollBarVisibility="Auto" ><toolkit:DataGrid 
			Grid.Column="0" Grid.Row="0">
			.
			.</toolkit:DataGrid></ScrollViewer></Grid>

when the DataGrid load the data, the rows and columns exceed the grid dimensions, the vertical scroll work perfect

but the horizontal scroll never appear, because the grid extend the column and not limit the width to the container

I need the scroll vertical and horizontal, but only the vertical is effective, the horizontal expands because the grid never limits the width of datagrid

Note: the Grid is inside stackpanel

greetings


Leandro Tuttini

Blog
Buenos Aires
Argentina


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>