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
Arslan Ali
NA
69
11.6k
Multi Column Search In ListView ( C# ,Visual Studio 2015 )
Aug 20 2018 12:56 AM
HI , I am using this code on OnKeyPress event , which filters my list View, but it only searches in the 1st Column of the List View .. Need Help ..
for
(
int
i = lv_panel_products.Items.Count - 1; i >= 0; i--)
{
ListViewItem lvi = lv_panel_products.Items[i];
foreach
(ListViewItem.ListViewSubItem subitem
in
lv_panel_products.Items)
{
if
(lvi.Text.ToLower().Contains(txt_searchproducts.Text.ToLower()) || subitem.Text.ToLower().Contains(txt_searchproducts.Text.ToLower()))
{
lvi.BackColor = Color.Black;
}
else
{
lv_panel_products.Items.Remove(lvi);
}
}
}
Reply
Answers (
8
)
how to print flowlayout panel to pdf.
Record already exist