摘要: 转载:http://hi.baidu.com/pope_1988/item/39f773e252f43905560f1d41C#DataGridView控件动态添加新行DataGridView控件在实际应用中非常实用,特别需要表格显示数据时。可以静态绑定数据源,这样就自动为DataGridView控件添加相应的行。假如需要动态为DataGridView控件添加新行,方法有很多种,下面简单介绍如何为DataGridView控件动态添加新行的两种方法:方法一:intindex=this.dataGridView1.Rows.Add();this.dataGridView1.Rows[index]. 阅读全文
posted @ 2013-04-21 20:22 侠梦千年 阅读(356) 评论(0) 推荐(0)