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
Ashley P
NA
1
1.4k
Updating a column in listview
Oct 4 2012 11:40 AM
Using a collection, I am populating a listview. There is a button called "Check Status" and when clicked it calls the CheckBookStatus method. I am wanting to go through each author listed and in my column called "Status" would like update the status to be updated to "Yes" or "No". I have posted the code of what I have so far. Much help is appreciated! Thank you!
My ListView is:
Author Name Book Name Status
#Private Properties
private Book.AllAuthorsCollection allauthorsCollection = null;
private string status = string.Empty;
private void CheckBookStatus()
{
long authorkey = this.AuthorKey;
Book.Books books = null;
this.status = books.Status;
int count = 0;
this.allauthorsCollection = Book.Books.AuthorIndex(authorkey);
count = this.allauthorsCollection .Count;
for (int i = 0; i < count; i++)
{
books = this.allauthorsCollection[i];
// check status
result = Book.Books.CheckAuthors(allauthorsCollection[i].AuthorKey);
if (this.status == "1")
{
}
else if (this.status == "2")
{
}
}
}
Reply
Answers (
0
)
C# console messages
How do I compare strings to see if they are composed of the same words?