06 2013 档案

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