将datarow数组绑定到网格 [英] Bind datarow array to grid
问题描述
嗨
有没有任何方法可以将数据行数组直接绑定到网格中而无需迭代.或到没有循环声明的数据表.
如果有人知道,请帮助我
谢谢
Nidhin
Hi
Is there any way to bind the datarow array directly into a grid without iteration. Or to datatable without loop statment.
If any one knows please help me
Thanks
Nidhin
推荐答案
有什么方法可以绑定数据行数组直接进入网格而无需迭代.
Is there any way to bind the datarow array directly into a grid without iteration.
C中没有数据网格,yiou的意思是将其标记为C#吗?
你是什么意思,没有迭代?
There are no datagrids in C, did yiou mean to tag it C# ?
What do you mean, without iteration ?
或到没有循环声明的数据表.
Or to datatable without loop statment.
为什么不能使用循环?设置网格的数据源是一行代码,不需要循环.
Why can''t you use a loop ? Setting the datasource of a grid is one line of code, no loops required.
我得到了答案
可以将datarow数组添加到数据集中,使用该数据集我们可以直接绑定数据表
无论如何,谢谢
I got the answer
The datarow array can be added to dataset, using the dataset we can directly bind the datatable
Anyway thanks
这篇关于将datarow数组绑定到网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!