How to display a certain number of rows in a DataGrid? For example, only the first 15?
DataTable has dynamic data. I need to display the first 15 lines. And the rest should also be present, but not displayed.
<DataGrid x:Name="CsvGrid" ColumnWidth="*" ItemsSource="{Binding csvTable}">
DataTable csvTable = new DataTable();
...
CsvGrid.ItemsSource = csvTable.DefaultView;