阵列和网格 [英] Arrays and Grid
本文介绍了阵列和网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用查询将数组直接绑定到Grid
Hi,
How to bind Arrays directly to Grid using Queries
推荐答案
您可以在Gridview中绑定数组.
试试类似的东西:
You can bind array in your Gridview.
Try something like:
// The array
string[] urls =
{
"http://www.codeproject.com",
"http://msdn.microsoft.com",
"http://www.google.com"
};
// Set the DataSource to the array
DataGrid1.DataSource = urls;
// And bind
DataGrid1.DataBind();
}
另一个示例此处. [
Another example here.[^]
这篇关于阵列和网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文