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
The scrolling will work automatically as soon as you add some data to the grid. To test you can apply this code
Name your grid to "grid"
Attached the Window Loaded event
private void Window_Loaded(object sender, RoutedEventArgs e)
{
grid.Items.Add(new object());
}
You will see the scrolling appears.