I have done VerticalScrollBarVisibility="Disabled" because i dont want the content inside datagrid to be viewed which crosses the assigned height. I am not able to see scroll bar after giving the above statement.but i still can scroll down and see the rows.Can someone tell me how do i disable scrolling all together? Thanks
Allow DataGrid to show all it's content (so it needn't scroll bar):
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<DataGrid x:Name="DataGrid" />
</Grid>
You can than put the result in any place. It'll cut down it's size to the owner's dimensions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With