开发者

Populate WPF DataGrid with 2d array during run-time

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜