Search with LINQ with case sensitive in C# winform
i am using code:
Activeuser.DataSource = temp.Where(x=>x.displayName.Contains(txtsearch.Text)).ToList();
var temp1 = objAvailableActiveUsersListResponse.users.Where(x => x.displayName.Contains(txtsearch.Text)).ToList();
int lstcount = temp1.Count;
Activeuser.DataSource = null;
if (lstcount > 0)
{
object[] row = new object[3];
// dataGridView1.Rows.Add(row);
for (int i = 0; i < lstcount; i++)
{
string DisplayName = temp1[i].displayName;
string uid = temp1[i].uid.ToString();
row = new object[] { DisplayName, false, uid };
Activeuser.Rows.Add(row);
}
but its search but in case of case sensitiv. its not working properly

Rajkiran SwainRank #165 · 14.4K reputationPosted Dec 29, 2017, 1:47 AM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 31, 2017, 9:54 PM EST
Ajeesh174 reputationPosted Jan 1, 2018, 5:05 PM EST