摘要: datagridview1.rows.add提供了4种方法,在委托的时候使用Add(DataGridViewRow),就可以成功委托添加了。之前用Add(Object[])委托但总是不行,抛出异常:参数计数不匹配。可能使用方法不对吧。委托方法:delegate int AddGridROW(DataGridViewRow i);//线程访问控件的委托,新建委托DataGridViewRow dgvr = new DataGridViewRow();//实例化对象dgvr.CreateCells(DataGridView1);//设置模板,映射作用dgvr.Cells[0].Value = &q 阅读全文
posted @ 2012-11-19 13:17 天涯海客 阅读(967) 评论(0) 推荐(0) 编辑