グリッドビューで検索し、グリッドビューのデータ全体ではなく、ページングを含む結果を表示するにはどうすればよいですか?
検索するためにこのコードを書きました:
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;
}