//-->Método BuscarNombre //----------------------------------------------------------------------------------------------- private void BuscarNombre() { string cRecibe; int nRecibe; //Este es el del tipo Datatable //this.dataListado.DataSource = NEntidad.BuscarNombre(this.txtBuscar.Text); cRecibe = NEntidad.BuscarNombre(this.txtBuscar.Text); nRecibe = Convert.ToInt32(cRecibe); //-->Lo que no veo bien seria el rendimiento, si hay mucha información esto no es bueno. for (int i = 0; i < dataListado.Rows.Count; i++) { String key = dataListado.Rows[i].Cells["identifica"].Value.ToString(); if (key.Contains(cRecibe) == true) { //->Colocar el DataGrid en la posición que me llega dataListado.CurrentCell = dataListado.Rows[i].Cells[nRecibe]; dataListado.Refresh(); } } this.OcultarColumnas(); //KAKA lblTotal.Text = "Total de Registros: " + Convert.ToString(dataListado.Rows.Count); }