how can I search in a gridview and just show the result with paging in it instead of whole data in gridview?
I wrote this code to search:
foreach (DataGridViewRow row in Reserve_dataGridView.Rows)
{
if (row.Cells["Cardserial"].Value.ToString().Equals(textBox1.Text))
{
Reserve_dataGridView.Rows[row.Index].DefaultCellStyle.BackColor = Color.Yellow;
}