开发者

Populate WPF DataGrid with 2d array during run-time

开发者 https://www.devze.com 2022-12-10 15:50 出处:网络
I have 2d array with unknown size (nxm), how can i populate wpf datag开发者_如何学编程rid with such a array.I found solution to create DataTable from 2d array and it works fine.

I have 2d array with unknown size (nxm), how can i populate wpf datag开发者_如何学编程rid with such a array.I found solution to create DataTable from 2d array and it works fine. Is there a way to populate it directly from 2d array? Thanks in advance.


You could use Linq to union or join both arrays and directly pupolate the datagrid. It's similar to the DataTable solution, but shorter.

0

精彩评论

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