2009年5月21日
摘要: treeview1.Nodes[0].ForeColor = Color.Red; private void treeView1_DrawNode(object sender, DrawTreeNodeEventArgs e) { Color strColor; if (e.Node.Index % 2 == 0)... 阅读全文
posted @ 2009-05-21 09:38 WPF之家 阅读(472) 评论(0) 推荐(0) 编辑
摘要: Windows Forms DataGridView 没有提供合并单元格的功能,要实现合并单元格的功能就要在CellPainting事件中使用Graphics.DrawLine和 Graphics.DrawString 自己来“画”。 下面的代码可以对DataGridView第1列内容相同的单元格进行合并:private void dataGridView1_CellPainting(object... 阅读全文
posted @ 2009-05-21 09:30 WPF之家 阅读(246) 评论(0) 推荐(0) 编辑