David Smith

David Smith

  • NA
  • 2k
  • 0

WPF Datagrid: Set DataGrid / DataSource to Max 4 records

Jun 12 2015 5:34 PM
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)