会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
dawei362
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2008年9月2日
新增一自增列
摘要: /// /// 为m_DataTable新增一自增列 /// private void AddAutoIncrementComunm() { DataColumn col = new DataColumn(NewColumnName, typeof(System.Int32)); ...
阅读全文
posted @ 2008-09-02 09:23 井陈
阅读(218)
评论(0)
推荐(0)
编辑
2008年8月27日
dropdownlist 绑定
摘要: IList _Cn = m_Crb.GetInfo_Status(); ddlStatus.DataSource = _Cn; ddlStatus.DataTextField = "Key"; ddlStatus.DataValueField = "Value"; ddlStatus.DataBind...
阅读全文
posted @ 2008-08-27 16:23 井陈
阅读(316)
评论(0)
推荐(0)
编辑
2008年8月22日
C# 如何实现文本框只能输入数字
摘要: 可以实现只能输入数字,但回格键被禁用 private void txtNumber_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar >= '0' && e.KeyChar <= '9') { ...
阅读全文
posted @ 2008-08-22 10:25 井陈
阅读(4497)
评论(1)
推荐(0)
编辑
2008年8月21日
打印
摘要: JS打印 设置打印范围 fdsfs fdfd 服务器端打印 /// /// 拼出要打印的表 /// /// DATASET /// DATAGRID /// public string DGPrint(DataSe...
阅读全文
posted @ 2008-08-21 14:47 井陈
阅读(288)
评论(0)
推荐(0)
编辑
2008年8月15日
C# 中动态添加控件及其事件
摘要: 首先,创建一个全局变量"i "用来区分各个新的按钮: private int i=0; 然后在已有的按钮中添加方法如下: private void button1_Click(object sender, System.EventArgs e) { i++; Button b = new Button();//创建一个新的按钮 b.Name="b"+i;...
阅读全文
posted @ 2008-08-15 16:03 井陈
阅读(5071)
评论(2)
推荐(0)
编辑