在运行时构建Gridview [英] Build Gridview at runtime
本文介绍了在运行时构建Gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须在运行时动态地在gridview控件中显示数据.我如何在运行时构建gridview?
I have to display data in gridview control dynamically at run time. How can i build the gridview at runtime?
推荐答案
请参见此处 [ ^ ].
例如,您可以使用以下代码:
[此示例中的文字列]
dataGridView1 [i,j] .Value =波斯男孩";
我是colundIndex,而j是rowIndex
:thumbsup:
for example you can use this code:
[text column in this example]
dataGridView1[i, j].Value = "persian boy";
i is colundIndex and j is rowIndex
:thumbsup:
这篇关于在运行时构建Gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文