This might a little late for an answer, but I use to search through the DataTable that feeds the grid instead of a direct search within the grid.
string searchText = txtSearch.Text.Trim();
if (searchText != "" && _data != null && _data.Rows.Count > 0)
{
DataRow[] searchData = _data.Rows.Cast()
.Where(r => r.ItemArray.Any(
c => c.ToString().IndexOf(searchText, StringComparison.OrdinalIgnoreCase) > 0
)).ToArray();
grdReceivingLogs.DataSource = searchData.CopyToDataTable();
}
else
grdReceivingLogs.DataSource = _data;
Hi,
we can´t do the coding for you but here are some pointers:
Depending on your needs just colorize the first one you find and reset all the others, etc.
Best regards
Frank
Please login first to submit.
