private void btn_Search_Click(object sender, EventArgs e) { dataGridView1.DataSource = ctr.Load(); string recordOld = (dataGridView1.Rows.Count - 1).ToString(); dataGridView1.DataSource = ctr.Search(textBox_Search.Text); string recordNew = (dataGridView1.Rows.Count - 1).ToString(); label_CountRecord.Text = recordNew + "/" + recordOld; }