TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Shefali Lahariya
NA
257
155.7k
Search with LINQ with case sensitive in C# winform
Dec 29 2017 5:18 AM
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
Reply
Answers (
3
)
Getting error when display image in datagridview in exe.
error while generating QR code