07 2013 档案
摘要:1 private void textBox3_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) 2 { 3 //阻止从键盘输入键 4 e.Handled = true; 5 if(e.KeyChar>='0' && e.KeyChar = '0' && e.KeyChar = '0' && e.KeyChar <= '9') || (e.KeyChar == (char)8))29 {30
阅读全文
摘要:1.获取数据源(select * from table名称)2.动态绑定数据源 1 private void GetTableInfo(DataTable dt) 2 { 3 listBh = new List(); 4 foreach (DataRow dr in dt.Rows) 5 { 6 BH_DICTInfo model = new BH_DICTInfo(); 7 model.DictId = dr["DICT_ID"].ToSt...
阅读全文