2012年8月29日
摘要: 控件using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespace testconroler{ public partial class UserControl1 : UserControl { public UserControl1() { ... 阅读全文
posted @ 2012-08-29 16:28 爱搁浅 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 筛选DataTable数据的方法对DataTable进行过滤筛选的一些方法Select,dataview当你从数据库里取出一些数据,然后要对数据进行整合,你很容易就会想到:DataTable dt = new DataTable();//假设dt是由"SELECT C1,C2,C3 FROM T1"查询出来的结果 for (int i = 0; i < dt.Rows.Count; i++) { if (dt.Rows[i]["C1"].ToString() == "abc")//查询条件 { //进行操作 } }但这种做法用一 阅读全文
posted @ 2012-08-29 16:22 爱搁浅 阅读(222) 评论(0) 推荐(0) 编辑