将填充后的DataSet中的DataTable进行二次处理,转换为2列,然后再绑定到DataGrid中
解决方案 »
- 有sqlserver存储过程的网站,想转成Access版本,怎么做最方便?
- new { controller = new NotEqual("Admin")} 报错
- 简单的问题
- 紧急求助!C#.net的treeview绑定sql数据库,单击树形图节点,右边区域显示相应数据
- 请教一个关于查找的问题
- 鼠标悬停在新闻标题连接上 出现的tooltip怎么做?
- 怎么抓取阿里巴巴网上的信息
- *******************存储过程返回值的问题************
- 全国省市级联特效
- 我想要在empty()后把select下的option中的内容补全,现在不知道怎么写补全的代码具体代码看补充。最好能给出补全的代码
- 页面经常出现object move here 是什么问题?100分
- 在ASP.NET中读取XML数据时对某一节点进行排序的问题!
那你不如事先处理了
这什么意思?
能详细说说?
private void GetRowsByFilter(){
DataTable myTable;
myTable = DataSet1.Tables["Orders"];
// Presuming the DataTable has a column named Date.
string strExpr;
strExpr = "Date > '1/1/00'";
DataRow[] foundRows;
// Use the Select method to find all rows matching the filter.
foundRows = myTable.Select(strExpr);
// Print column 0 of each returned row.
for(int i = 0; i < foundRows.Length; i ++){
Console.WriteLine(foundRows[i][0]);
}
}