//按界面上显示出来的值查询
gridView1.LocateByDisplayText();
//按数据源中的原值查询
gridView1.LocateByValue();
//上面两个方法返回的都是目标项的 RowHandle; 若没有找到,则返回-9999.
/// <summary>
/// 例子
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void barEditItem1_EditValueChanged(object sender, EventArgs e)
{
string txt = this.barEditItem1.EditValue.ToString().Trim();
int foundHandle = this.gridView1.LocateByValue(0, this.gridView1.Columns["reg_name"], txt);
this.gridView1.FocusedRowHandle = foundHandle;
this.gridView1.FocusedColumn = this.gridView1.Columns["reg_name"];
}