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
Goran Bibic
474
2.9k
201.1k
Search two words in datagrid C#
May 31 2020 1:27 PM
Regards
I need search two words in datagrid
Example
If is team AC MILAN
If put word MILAN in text box have multiple values, becose I have basketbal team and footbal team
Need some solution LIKE: %AC%MILAN% (Result find all word in datagrid with AC and MILAN)
private
void
SearchListTextBox_TextChanged(object sender, EventArgs e)
{
(ListDataGridView.DataSource as DataTable).DefaultView.RowFilter = string.Format(
"[Team] LIKE '%{0}%' OR [Player] LIKE '%{0}%'"
, SearchListTextBox.Text);
countRowsLabel.Text =
"Ukupno racuna: "
+ ListDataGridView.RowCount.ToString();
}
Reply
Answers (
1
)
C# - ODBC connection failed
some couple of errors in billing system