I have created simple DataGrid with 4 columns, which go outside the bounds of DataGrid, and horizontal scrollbar is not showing. I tried setting width to each column but nothing
Obviously you need horizontal scroll bar.
Two things need to do:
1. Add property IsReadOnly="True" to your DataGrid
IsReadOnly="True"
2. Add MaxWidth="1200" VerticalScrollBarVisibility="Auto" to your ScrollViewer
MaxWidth="1200" VerticalScrollBarVisibility="Auto"
ScrollViewer
MaxWidth need to be set, you can change 1200 to any other value as you need.
1200