1

Referring to this question; the solution gives me one row too much. I have three items in my ItemsSource but I get four rows in the grid, last one has index 4 and all columns are empty. Is there a simple fix for this?

Community
  • 1
  • 1
Pompair
  • 7,083
  • 11
  • 60
  • 69

1 Answers1

1

Set CanUserAddRows=false on <Datagrid />

The last row is the "new row" where you can enter in a new piece of data

jamesSampica
  • 12,230
  • 3
  • 63
  • 85
  • Didn't try this because I solved this by manually adding the index column in my viewmodel. But I believe that this is correct answer. – Pompair Oct 24 '13 at 10:09