2013年5月14日

摘要: // 根据ID选中行,并将选中行显示在GridView最顶端 protected void SelectRowByID(DataGridView dgv, string ID) { //根据GridView某字段的值获得行号 DataRow[] rows = (dgv.DataSource as DataTable).Select("ID='" + ID + "'"); if (rows.Length > 0) { int findRow = (dgv.DataSource as DataTable).Rows.IndexOf(ro 阅读全文

posted @ 2013-05-14 20:39 yfldj 阅读(1064) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3