So I have a collection that I have in a listbox right now, which displays each item in the collection. I want to turn the listbox into a gridview, so I can add checkboxes and other drop downs. I am unable to find a tutorial that explains how to do this.
For the example my collection has 2 items, each item has multiple columns.
- [0] 747 Jet
- [0] Passenger amount: 417
- [1] First Flight: 1967
- [0] A380
- [0] Passenger amount: 853
- [1] First Flight: 2005
Right now my listbox uses this code
foreach (AMAPnr.Airplane airElement in AMAPnr.Airplanes)
{
lstPlanes.Items.Add(
"PassengerAmount: " + airElement.Passenger + " First Flight:" +
airElement.FirstFlight.ToString());
}
How would i go about changing this into a gridview?