473,804 Members | 3,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Displaying hierachical data with data grid

thf
Hi, I wish to know how to display a collection of object which is a
property in another object in a data grid in VB.Net.

For example, I'm displaying a collection of vendor objects (in
ArrayList) in a data grid, while I wish to display the products
supplied by the vendor (which appears as a collection of product
objects in the vendor object property) in another grid.

I wish to know how can I accomplish such task. I used data
gridtablestyle to accomplish the first half of the task, that is to
map my vendor grid to the collection of vendor objects. However, I
do not know how to map the product grid to the collection of product
objects in the current selected vendor object.

Thanks in advance for the advise......

Nov 21 '05 #1
1 1497
Thf,

Did you already look in the VB resourcekit for Master Detail datagrid?

(There is one sample for a winforms and one for a webform datagrid)

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

I hope this helps?

Cor
Hi, I wish to know how to display a collection of object which is a
property in another object in a data grid in VB.Net.

For example, I'm displaying a collection of vendor objects (in
ArrayList) in a data grid, while I wish to display the products
supplied by the vendor (which appears as a collection of product
objects in the vendor object property) in another grid.

I wish to know how can I accomplish such task. I used data
gridtablestyle to accomplish the first half of the task, that is to
map my vendor grid to the collection of vendor objects. However, I
do not know how to map the product grid to the collection of product
objects in the current selected vendor object.

Thanks in advance for the advise......

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1965
by: pmud | last post by:
Hi, I have 4 columns in my sql database table. I added a data adapter , data set & a data grid to view this information. But the data grid is displaying those 4 columns TWICE , i.e in the data grid i see 8 columns. In case this is useful, the primary key is Serial no. which is an identity ....i.e everytime a row is added to the database, it increments by1. Also, when i configured the data adapter, it couldnt Generate the UPDATE &...
18
1952
by: Mike MacSween | last post by:
I have an app I need a hierachical structure for. There seem to be 3 ways of implementing this, as far as I can see: 1. Adjacency list. Pros - intuitive and relatively simple Cons - not easily accesible via standard SQL, needs recusive queries to crawl up or down the structure. I'll be doing this in Jet or perhaps MS SQL Server, so Oracle's Connect by is out. 2. Nested Sets a la Joe Celko's BOM.
0
2565
by: Tormod Ulsberg | last post by:
Hi! I am using a data grid to display an event log using the code listed below: EventLog log = new EventLog(); log.Log = "System"; log.MachineName = "."; logGrid.DataSource = log.Entries; logGrid.DataBind();
2
2955
by: VM | last post by:
When I display data to a Windows datagrid I usually fill the underlying table (in another class) and then, once it contains all the data, I attach it to the grid. But there are some processes that involve large amounts of data so the user won't be able to see anything in the grid until after the table's already filled up (usually 40-60 secs with these large processes). Is it possible (without changing the process of filling the table...
2
1648
by: scott | last post by:
Hi all, Iv got a slight problem with a datagrid and the ability to only display certain things in it. I have a Data grid which is connected to a data table. The data table is connected to a data set which in turn gets its info from
4
1380
by: Jon | last post by:
Hi, suspect there might not be a good answer to this one. Using vb.net I have a page like this some text datagrid repeater Now the repeater is populated from a simple query that takes no time to execute but the datagrid relies on some processing that takes around 15-20 seconds. Is there any way to get the repeater onto the screen while the grid
5
1405
by: Lisa Calla | last post by:
Hi, I need to display records with lots of fields. When placed in a grid, a row of data will scroll off the screen. Not exactly what I'm looking for. I've also used a datalist, which allows multiple lines for a single row of data (yes! no horizontal scrolling!), but columns do not line up across listitems/data rows (very ugly & distracting - maybe there's some way to get the items to line up, but I haven't found it). This has to be a...
7
14682
by: What-a-Tool | last post by:
Have an Access table loaded into a DataTable that was created at run time, and am displaying these contents in a data grid. Me.dgGames.DataSource = Me.DsGameInfo.Tables("Games") I would like to display only a selected few of the columns, rather than the whole table. Is this possible? Thanks - Sean
8
1103
by: Jon Vaughan | last post by:
I have a hierachical dataset brought back from a sql server stored procedure with a design as follows : StaffID <Staff Columns> AddressID <Address Columns> StaffID_FK
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9138
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.