| | | Forum Newbie
       
Group: Forum Members Last Login: 8/14/2008 8:56:37 PM Posts: 1, Visits: 3 |
| Hello,
First off, this is my first post and I promise not to be a "one post and run" type of person. :-)
Secondly, I have an issue with binding a list of objects to a Data Grid View. Each object contains various data types such as strings, integers, etc. However, one such data type is a list. Now, I have successfully displayed the main list of objects into the data grid, but the list property in each individual object does not appear.
So basically it goes like this:
ItemCollection List(of Items)
Each "Item" contains, a string, integer and List of Strings.
Each row in the Data Grid looks like this (without the list column, because it won't show up).
CATEGORY | TYPE | SIZE | QTY | TOPPINGS
Pizza | Cheese | Small | 4 |
Is it possible to display the list of strings in the row with all the other data? The Data Grid View does not seem to recognize it. I also tried switching it to a binding list, but that didn't seem to work either. I heard that a list can be displayed as a combo box in the proper cell, but I just can't seem to achieve this.
Has anyone ever heard of something along these lines or any articles
|
| | | | Forum Newbie
       
Group: Forum Members Last Login: 8/18/2008 5:15:38 AM Posts: 3, Visits: 1 |
| | | | | Junior Member
       
Group: Forum Members Last Login: 10/14/2008 12:47:36 PM Posts: 17, Visits: 20 |
| | Search how to add a combobox to a datagrid cell and assign your list to the combbox. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 9/22/2008 3:02:29 PM Posts: 3, Visits: 3 |
| This is really a good question.as soon as possible.i will give ans.
|
| |
|
|