1.数据定位
/// <summary>
/// 查找下一个
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnFindNext_Click(object sender, EventArgs e)
{
string id = this.txtCondition.Text;
Grid.ClearSelection();
int row = GetRowFromGrid(id);
if (row != -1)
{
Grid.Rows[row].Selected = true;//选中该行
Grid.FirstDisplayedScrollingRowIndex = row;//显示该行
}
}