RE: Datagrid Horizontal scroll bar not get visible when binded to datatable has more columns and no rows
TobiH77
1
Reputation point
my solution to this question:
make sure your DataGrid has CanUserAddRows enabled so the ScrollBar is visible and create a converter for DataGrid.RowHeight. Create a binding in RowHeight and set height to 0 if Items.Count in your DataGrid collection is 0.
Another solution is to switch between two DataGrids and show a different Grid when Items.Count is 0.
Developer technologies ASP.NET Other
3,597 questions
Sign in to answer