1
Answer

WPF Datagrid: Set DataGrid / DataSource to Max 4 records

David Smith

David Smith

9y
452
1
Is there a way to set grid or datasource to 4 max records always always.
So if a user delete a row, the grid should always show 4 rows or 4 records.
 

Color ID   Color

1              red

2              blue

3              green

4              yellow

 

If user delete record colored 4, the results should be

Color ID   Color

1              red

2              blue

3              green

5             ""

 

Answers (1)