摘要: 在GridView中插入多行时,如果超出了界面,再插入时,滚动条或界面不会自己动,也就是说插入时你看不到新插入的行,这样是很不方便的,像Excle一样,当添加行时,会随着一起动的。 既然Excle可以,那这个也应该可以,当时研究了很久,找了无数的帖子,始终没能解决问题。 干脆自己研究它的方法,无意之中发现一行代码搞定,笑我个半死。 this.gridView1.MoveNextPage(... 阅读全文
posted @ 2013-06-02 19:14 永远的菜鸟@me 阅读(494) 评论(0) 推荐(0) 编辑
摘要: public string dstotring(DataSet ds, int cursor) { if (ds.Tables[0].Rows.Count > 0) { int count = ds.Tables[0].Rows.Count; string Capt... 阅读全文
posted @ 2013-06-02 19:08 永远的菜鸟@me 阅读(1072) 评论(0) 推荐(0) 编辑