开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜