I have a list of objects I would like to find a way to display information for, specifically I want to know if I could do this using a listbox. My problem with figuring out how to do this is that I have a list of objects that have multiple properties that i would like to display, and one of them is a list inside the object like this:
public class Records
{
//I may want to think about adding a way to keep track of what book number the record is actually a part of
//rather than keeping that with the book title. that way it can be easier to reference.
public class Records
{
public String Title { get; set; }
public String FirstName { get; set; }
public string LastName { get; set; }
public List<int> Pages { get; set; }
public string person { get; set; }
public string Tag { get; set; }
public int BookNumber { get; set; }
public string Date { get; set; }
private Type _type;
public Type type
{
get
{
return this._type;
}
set
{
this._type = value;
GrabDate();
}
}
}
because of the list of pages in the records, how would I display this using a Listbox? would it be better just to use a datagridview?