- 博客(5)
- 收藏
- 关注
原创 GridView子窗口向父窗口传值问题?
<br />一.子窗体向父窗体传值<br />1、父窗体:<br /><script type="text/javascript"><br /> function XuanZeContract()<br /> {<br /> window.showModalDialog('子窗体.aspx','newwindow','height=300,width=500,top='+(screen.AvailHeight-300)/2+',left='+(screen.
2010-11-25 09:37:00 613
原创 合并单元格 Winform
"合并单元格的测试"#region"合并单元格的测试" private int? nextrow = null; private int? nextcol = null; private void dataGridView1_CellFormatting(object sender, System.Windows.Forms.DataGrid
2010-03-25 15:19:00 512
原创 DataGridView合并单元格 编辑单元格
同事的一个项目需要将DataGridView单元格中的内容分不同颜色显示,想了想只有重绘了。这种方法还可以用做合并单元格。参考代码:private void dataGridView1_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { if (e.RowIndex =
2010-01-07 15:59:00 414
原创 在GridView中如何格式化Money型字段
DataMember="DefaultView" DataSourceID="SqlDataSource1"> SortExpression="PKID" />
2010-01-07 15:58:00 245
原创 CellPainting事件,一般用于合并单元格用
Windows Forms DataGridView 没有提供合并单元格的功能,要实现合并单元格的功能就要在CellPainting事件中使用Graphics.DrawLine和 Graphics.DrawString 自己来“画”。下面的代码可以对DataGridView第1列内容相同的单元格进行合并:#region"合并单元格的测试" private int? nextrow = null
2010-01-07 15:55:00 767
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人