Exemplo n.º 1
0
        //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);
        }
Exemplo n.º 2
0
 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);
     }
 }