09 2013 档案
摘要:两个数据转换成double型做差,会出现误差,转换成Decimal就OK了。
阅读全文
摘要: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; ...
阅读全文
摘要:private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { // 对第日期列相同单元格进行合并 if (e.ColumnIndex == 2 && e.RowIndex != -1) { using( Brush gridBrush = new SolidBrush(this.dataGridView1.GridColor...
阅读全文