摘要: 我用此方法主要用于找到GridView中的控件,核心代码如下: 1 public static Control getChildControl(Control ctl, string ControlID) 2 { 3 foreach (Control cctl in ctl.Controls) 4 { 5 if (cctl.ID =... 阅读全文
posted @ 2007-09-26 09:36 sunfishlu 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: 由原数据,根据条件可以查询出新的DataTable 1public static DataTable FilterDataTable(DataTable dt, string condition) 2 { 3 if (condition.Trim() == "") 4 return dt; 5 els... 阅读全文
posted @ 2007-09-26 08:48 sunfishlu 阅读(281) 评论(0) 推荐(0) 编辑