03 2015 档案

C# Windows DataGridView 判断CheckBox 选取的方法
摘要:单行选中foreach (DataGridViewRow dr in this.dataGridView1.Rows) { try { //DataGridViewCheckBoxCell cbx = (DataGridViewCheckBoxCell)dr.Cells[0]; //if ((boo... 阅读全文

posted @ 2015-03-15 16:26 连一粝 阅读(355) 评论(0) 推荐(0)

C#自动生成年月,绑定到combobox控件
摘要:private void FillYearMonth() { List listDateTime = new List(); DateTime dtStart = Convert.ToDateTime("2015-1"); //开始时间 DateTime dtEnd = DateTime.Now;/... 阅读全文

posted @ 2015-03-15 09:41 连一粝 阅读(293) 评论(0) 推荐(0)

dataGridView使用指南系列一、回车换行或换列完美解决方案
摘要:bool enterkey; protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { enterkey = false; if (keyDat... 阅读全文

posted @ 2015-03-10 13:49 连一粝 阅读(319) 评论(0) 推荐(0)

C#中DataGridView控件绑定数据源有几种方式?
摘要:第一种:DataSet ds=new DataSet (); this.dataGridView1.DataSource=ds.Table[0]; 第二种:DataTable dt=new DataTable(); this.dataGridView1.DataSource=dt; 第三种... 阅读全文

posted @ 2015-03-08 21:12 连一粝 阅读(548) 评论(0) 推荐(0)

C#_winform_DataGridView_的18种常见属性
摘要:C#winformDataGridView属性说明① 取得或者修改当前单元格的内容② 设定单元格只读③ 不显示最下面的新行④ 判断新增行⑤ 行的用户删除操作的自定义⑥ 行、列的隐藏和删除⑦ 禁止列或者行的Resize⑧ 列宽和行高以及列头的高度和行头的宽度的自动调整⑨ 冻结列或行⑩ 列顺序的调整? ... 阅读全文

posted @ 2015-03-08 20:02 连一粝 阅读(246) 评论(0) 推荐(0)

导航