YourList.Where(p => p.firstName.ToLower().Contains(txtSearch.Text.ToLower()) || p.lastName.ToLower().Contains(txtSearch.Text.ToLower()) || p.status.ToLower().Contains(txtSearch.Text.ToLower()) || p.department.ToLower().Contains(txtSearch.Text.ToLower()) || p.title.ToLower().Contains(txtSearch.Text.ToLower())).ToList();
//where p is any char. Its will show all columns in intelligance
//where p is any char. Its will show all columns in intelligance
Sorting:
YourList.Sort(orderBy);
//orderBy is your sorting direction(ASC,DESC)
//orderBy is your sorting direction(ASC,DESC)
0 comments:
Post a Comment