开发者

WPF DataGrid control: adding the most recent row on top

开发者 https://www.devze.com 2022-12-11 18:31 出处:网络
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 my

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

精彩评论

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