Exemplo n.º 1
0
        private void bunifuImageButton1_Click(object sender, EventArgs e)
        {
            dataGridView1.DataSource = ctrt.Load();
            string recordOld = (dataGridView1.Rows.Count - 1).ToString();

            dataGridView1.DataSource = ctrt.Search(textBoxSearch.Text);
            string recordNew = (dataGridView1.Rows.Count - 1).ToString();

            label_CountRecord.Text = recordNew + "/" + recordOld;
        }
Exemplo n.º 2
0
 private void btn_Search_Click(object sender, EventArgs e)
 {
     dataGridView1.DataSource = ctrlMDC.Search(textBox_Search.Text);
     label_CountRecord.Text   = CountRecord().ToString() + "/" + totalRecord.ToString() + " bản ghi";
 }