WPF DataGrid control: adding the most recent row on top
I want to programmatically add a row to t开发者_如何学运维he top in a DataGrid control. Any ideas?
Insert the new row at the start of the list (that means the list that the grid is binding to.), i.e myList.Insert(0, myobject);
If that doesn't work then you have binding issues, which should be a new question.
精彩评论