0
我怎样才能在gridview中搜索,只是显示分页结果而不是在gridview中的整个数据?在C#中的gridview搜索和分页#
我写了这个代码搜索:
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;
}
这是的WinForms或ASP.NET? –
这是一个winform! –