//private bool VerificaContenido(DataGridView gridView) //{ // bool bcampo = false; // if (gridView.RowCount > 0) // { // foreach (DataGridViewRow dr in gridView.Rows) // { // foreach (DataGridViewCell dc in dr.Cells) // { // if (dc.Value == null || string.IsNullOrEmpty(dc.Value.ToString())) // { // bcampo = true; // } // } // } // } // return bcampo; //} private void TxtSearch_TextChanged(object sender, EventArgs e) { //Limpiamos las rows dtc = new DataTable(); CreateDataTable(); Console.WriteLine("Busca por: " + txtSearch.Text); List <Client> clients = clientLog.Read_all_like(txtSearch.Text); Console.WriteLine("Cantidad: " + clients.Count); LoadDataTable(clients); }
private void TxtSearch_TextChanged(object sender, EventArgs e) { if (!txtSearch.Equals("")) { //Limpiamos las rows dtc = new DataTable(); CreateDataTable(); List <Client> clients = clientLog.Read_all_like(txtSearch.Text); LoadRowsTable(clients); //DgvClient.DataSource = clientLog.Read_all_like(txtSearch.Text); } }