The data source for my main GridView object is a list of a custom object, which in turn contains child objects, and I want to be able to create a hierarchy grid that allows the user to drill into these child objects. I understand how to create the hierarchy if the entire row is a child record, but not how to accomplish this when a cell is the child record.
Example of my custom object is below.
Example of my custom object is below.
public
class
Claim
{
public
Claim();
//
// Summary:
// Provider billing for services
public
Provider BillingProvider {
get
;
set
; }
//
// Summary:
// Claimant
public
Claimant Claimant {
get
;
set
; }
//
// Summary:
// Claim number
public
string
ClaimNumber {
get
;
set
; }
//
// Summary:
// Member
public
Member Member {
get
;
set
; }
//
// Summary:
// Policy
public
Policy Policy {
get
;
set
; }
//
// Summary:
// Process date
public
DateTime ProcessDate {
get
;
set
; }
//
// Summary:
// Date claim was received
public
DateTime ReceiveDate {
get
;
set
; }
//
// Summary:
// Provider rendering services
public
Provider RenderingProvider {
get
;
set
; }
//
// Summary:
// List of services provided
public
List<Service> ServiceList {
get
;
set
; }
//
// Summary:
// Address where services were provided
public
Address ServiceLocation {
get
;
set
; }
//
// Summary:
// Worksheet / bill number
public
int
Worksheet {
get
;
set
; }
}
//
// Summary:
// Member
public
class
Member : Person
{
public
Member();
//
// Summary:
// Effective date
public
DateTime EffectiveDate {
get
;
set
; }
//
// Summary:
// Member ID
public
string
MemberId {
get
;
set
; }
//
// Summary:
// Member's coverage policy
public
Policy Policy {
get
;
set
; }
//
// Summary:
// Termination date
public
DateTime TerminationDate {
get
;
set
; }
}
//
// Summary:
// Person
public
class
Person
{
public
Person();
//
// Summary:
// Contact address
public
Address Address {
get
;
set
; }
//
// Summary:
// Date of birth
public
DateTime Dob {
get
;
set
; }
//
// Summary:
// First name
public
string
FirstName {
get
;
set
; }
//
// Summary:
// Gender
public
string
Gender {
get
;
set
; }
//
// Summary:
// Last name
public
string
LastName {
get
;
set
; }
//
// Summary:
// Middle name
public
string
MiddleName {
get
;
set
; }
//
// Summary:
// Social security number
public
string
Ssn {
get
;
set
; }
}