Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » General Visual Basic » Display object that contains list in Data...


Display object that contains list in Data...Expand / Collapse
Author
Message
Posted 8/11/2008 4:54:08 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

Post #25562
Posted 8/18/2008 5:27:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/18/2008 5:15:38 AM
Posts: 3, Visits: 1
well i would be happy to help but am still learning the language

copier toner Cheap Car Leasing
Post #25584
Posted 9/19/2008 10:30:56 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior 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.
Post #25736
Posted 9/22/2008 3:14:43 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.

murano glass jewelry Stock Picks
Post #25755
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 5:16am