- 博客(6)
- 资源 (12)
- 问答 (2)
- 收藏
- 关注
原创 datagridview 指定列,进行绑定,不绑定的列不显示。
在Form_Load上,this.dgvsum.AutoGenerateColumns = false;不允许自动生成列
2018-02-22 13:44:55
7295
3
转载 C#当输入用户名来自数据表,自动显示数据表中对应的id
private void textBox1_KeyPress(object sender, KeyPressEventArgs e){ if(e.KeyChar==13) //在textBox1按下回车时执行 { SqlConnection con = new SqlConnection(连接数据库的字符串); con.Open();
2018-01-31 13:36:02
1328
原创 怎么将两个DataTimepicker控件的中间日期传给worktime?
sql = string.Format(@" select * from {0} where worktime >='{1}' and worktime DoctorDutyDto = dalQuery.Query(dtpTimeBegin.Value.Date, dtpTimeEnd.Value.Date)
2018-01-31 09:41:53
394
1
原创 c#无法将类型int隐式转换为string怎么解决?
entity.userid = txtUserid.Text; if (entity.userid.Length { txtUserid.Focus(); throw new Exception("UserID不能为空");
2018-01-23 08:40:22
7229
2
c#窗体代码中调用类库中的一个类使 lblist.Text=lblist
2018-02-12
未将对象引用设置到对象的实例
2018-02-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人