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.
↧