i wasted nearly morethan a day figuring out how to convert dataview to objectdatasource and finally
i could not do the search by using dataview so i created a new stored procedure and then changed the select method on search button clicked event ,Below is the code
ObjectDataSource1.SelectMethod = "GetDataBySearch";
source = "view";
ViewState["searchitem"] = searchbox.Text.Trim();
ViewState["dropdownindex"] = Convert.ToInt32(DropDownList1.SelectedValue);
ObjectDataSource1.Selecting +=new ObjectDataSourceSelectingEventHandler(ObjectDataSource1_Selecting);
GridView1.DataBind();
hope if it helps someone