摘要:
1.公共方法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicclassMyTextBox:TextBox{protectedoverridevoidOnEnabledChanged(EventArgse){base.OnEnabledChanged(e);//设置Enabled为False时if(this.Enabled){this.SetStyle(ControlStyles.UserPaint,false);}elsethis 阅读全文
posted @ 2010-12-24 19:40
DODUI
阅读(703)
评论(0)
推荐(0)
摘要:
DataRow [] dr = outinfo.Tables[0].Select("stock_in_rec_id=" + this.efGrid1.Rows[this.efGrid1.RowSel]["stock_in_rec_id"].ToString() + "");dr.CopyToDataTable();有时候需要把dataset其中一个表的内容读取到DataRow,之后再复制到新的datatable应用。下面是实现的代码:DataRow[]转换成DataTable的方法: DataTable dt=new DataTabl 阅读全文
posted @ 2010-12-24 12:36
DODUI
阅读(5128)
评论(1)
推荐(1)
摘要:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#region过滤DataTable中的指定字段重复的行//////过滤DataTable中的指定字段重复的行////////////publicDataTableSelectDistinctByField(DataTabledt,stringFieldName){DataTablereturnDt=newDataTable();returnDt=dt.Copy();//将原DataTable复 阅读全文
posted @ 2010-12-24 11:03
DODUI
阅读(612)
评论(0)
推荐(0)

浙公网安备 33010602011771号