Solved

Bind object at different levels to a data grid view

Posted on 2010-09-21
3
229 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 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

19 Experts available now in Live!

Get 1:1 Help Now