Hola amigos tengo uyn formview enlazado a un SQLDatasource. el mismo devuelve 
miles de registros. ¿como se le ocurriria hacer un find o hacer un metodo de 
busqueda para encontrar un registro determinado en el formview. 

Yo le pase por ejemplo el request.params["id"], pero no funciona. hay algo que 
me falta y aun no se que es y tiene que ver con obtener la datatable asociada 
al control formview..

if (Request.Params["id"] != null)

{

ViewState["filtrar"] = null; 

this.DropDownList1.SelectedIndex = -1;



string url = Request.UrlReferrer.ToString();

DataTable tabla = new DataTable();


tabla = (DataTable) this.FormView1.DataSource;


aqui me da error porque tabla esta null aun no lo se. 

tabla.DefaultView.Sort = "id_trabajador"; 

tabla.DefaultView.Find(Request.Params["id"].ToString());

this.FormView1.DataSource = tabla; 

}


muchisimas gracias.



PEPE

Responder a