Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGrid Add row

$
0
0
You can just add an item into your ObservableCollection which effectively adds a row to the DataGrid. How you get the user to do this is more interesting - you could just have a button below your table. Or you could intercept the return keys on the last cell and then add a row. Maybe you could always have a blank row and filter this out when the user is finished with the table but that would maybe require your viewmodel to be strings. In short, adding a row isn't hard but doing it nicely requires a bit of thought.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>