摘要:
文章引自:http://www.cnblogs.com/spgoal/archive/2006/09/04/494665.html代码如下:View Code stringInputStr=tbKey.Text;foreach(DataGridViewRowdvrindataGridView1.Rows){if(dvr.Cells[0].Value.ToString().StartsWith(InputStr)){dataGridView1.ClearSelection();dvr.Selected=true;dataGridView1.CurrentCell=dvr.Cells[1];bre 阅读全文