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")
{
}
}
}