09 2013 档案

摘要:两个数据转换成double型做差,会出现误差,转换成Decimal就OK了。 阅读全文
posted @ 2013-09-30 10:12 honging 阅读(124) 评论(0) 推荐(0) 编辑
摘要:DataGridViewTextBoxColumn dgv_IDY = new DataGridViewTextBoxColumn(); dgv_IDY.Visible = false; dgv_IDY.HeaderText = "IDY"; dgv_IDY.Name = "IDY"; DataGridViewTextBoxColumn dgv_IDT = new DataGridViewTextBoxColumn(); dgv_IDT.Visible = false; ... 阅读全文
posted @ 2013-09-29 17:35 honging 阅读(248) 评论(0) 推荐(0) 编辑
摘要:private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { // 对第日期列相同单元格进行合并 if (e.ColumnIndex == 2 && e.RowIndex != -1) { using( Brush gridBrush = new SolidBrush(this.dataGridView1.GridColor... 阅读全文
posted @ 2013-09-11 16:33 honging 阅读(568) 评论(0) 推荐(0) 编辑