Instead of searching the grid, please search the datatable that is bound to the grid. You will be able to filter the record faster. Transfer the filtered records to another datatable and bind the new datatable to the grid. This way it will be easy for you rather than searching the grid...
I assume you are working in a web application
Dim dr() as DataRow
Dim dt1 as DataTable
dt1=dt.clone()
dr=dt.Select(" AccountID='" & txtAcId.Text.Trim &"'")
for each dr1 as DataRow in dr
dt1.ImportRow(dr1)
next
DGAccount.DataSource = dt1
DGAccount.DataBind()
Hope it helps!!
Dinesh Kumar V