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
osyris zosar
NA
289
27.1k
how to see if Listview column contains a specific name
Dec 12 2020 4:41 PM
I have created a ListView with multiple columns
(This is a part of the Xaml)
<ListView.View> <GridView> <GridViewColumn Width=
"100"
Header=
"Indexer"
DisplayMemberBinding=
"{Binding Number}"
/> <GridViewColumn Width=
"100"
Header=
"Name"
DisplayMemberBinding=
"{Binding NameId}"
/> <GridViewColumn Width=
"100"
Header=
"Age"
DisplayMemberBinding=
"{Binding Age}"
/> </GridView> </ListView.View>
cs part:
public
class
MyItem {
public
int
Number {
get
;
set
; }
public
int
Age {
get
;
set
; }
public
string
NameId {
get
;
set
; }
}
i know how to add a new item to a specific column:
AccountList.Items.Add(
new
MyItem { Age = Convert.ToInt32(AgeVAlue), NameId = NameValue.ToString(), Number = ListCount });
how do i check if NameId contains a spefic word because i cannot do this:
AccountList.Items.Contains(SpecificWord)
Reply
Answers (
4
)
How to check particular radiobutton based on database value
About Whats Up Group Chat