Solved

Bind object at different levels to a data grid view

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is "public object" in C#? 3 48
converto datetime always changes format 9 37
Need to learn more about SecurityProtocolType.Tls12 3 32
VB.NET 2008 - SQL Timeout 9 25
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

832 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