Solved

Bind object at different levels to a data grid view

Posted on 2010-09-21
3
231 Views
Last Modified: 2013-11-07
Hello, I was wondering if it is possible to bind an object to a data grid view at different levels. For example, I have an object named project, it contains a collection of licenses and inspections. There are pipelineInspections and wellInspections that inhearit from inspections, and lower objects (the actual inspections) that inhearit from wellInspections and pipelneInspections. On the pipeline side there are wellLicense and pipelineLicense that inhearit from licenses. Now to make it more complicated, each inspection is linked to a license through a key, each license can have many inspections but each inspection can have only 1 license.
Now I am trying to bind to the project object and show a few properties at the inspection level and a few properties at the wellInspection level and a few properties from an actual inspection.

How can I do this?

Thank you in advance for any help.
0
Comment
Question by:scottlafoy
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
mac-will earned 500 total points
ID: 33729213
These names sound familiar, are you in Alberta by chance?

What you will probably need to do is use relations.
If you have a dataset of of project objects, inspectionsand licenses you can define the relations between them (i.e. your key) and use the relations syntax as a binidng memebr

See if this helps:
http://msdn.microsoft.com/en-us/library/c12c1kx4.aspx

0
 
LVL 8

Expert Comment

by:mac-will
ID: 33729312
0
 
LVL 5

Author Closing Comment

by:scottlafoy
ID: 33729896
This is exactly what I was looking for. I was starting to think it could not be done. Thank you very much
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now