[RESOLVED] Not sure what type of control I need
Hey,
Like the title say im not sure what type of VB.Net control I need, or will need to customise, but I'll lay out what I want from my design and hopefully someone can point me in the right direction.
Im going to have a arraylist of the class Person (simple class with the following variables: name, age, gender, and a brief paragraph). What I'd like is to be able to show the user a list of all the instances of the class person in the array list, but for each instance to show all the information its holding in one box/grid.
http://i199.photobucket.com/albums/a...tos/Sample.jpg
So im looking to do something along the lines of whats in the image above. Is there a control already in vb.Net (2008) that will allow this or will I have to look to creating my own, and if so where should I start looking?
Re: Not sure what type of control I need
For a layout like that, I think you'll have to make your own/custom control. You could use a ListView but all the info of one record/person would be in one line.
Re: Not sure what type of control I need
VB6 has a DataRepeater control. The illustration at that link shows several sorts of controls in the repeated element, you could use Labels or something if you don't want direct input (or to see the control borders, etc.).
There is probably something similar in VB.Net.
Re: Not sure what type of control I need
Thanks...
Had a look for that data repeater control for vb.net and it seems theres one in the vb.net power pack 3.0 so I'm going to give that a try
Re: Not sure what type of control I need
If you've installed SP1 for VS 2008 or VB Express 2008 then you already have the DataRepeater control in your Toolbox, as the PowerPacks are installed as part of SP1.