Hi all
I have an interesting issue I hope someone has an answer for.
I have a situation where I have two types of records, Full and Split. A full record may have from 0 to 3 split records. I want to display the full records and the splits in a detail table under the associated full record. That part is easy.
Here is the fun part...
According to the business rules:
1) If a full record is assigned, then the associated splits should be unavailble for assignment
2) If a split record is selected, then the parent full record should be unavailable for assignment.
I think I can accomplish rule #1 when databinding the detail table. I need to check to see that a person has been assigned to the full record. If so, I can either prevent the detailtabledatabind entirely, or disable the assign button for each detail record.
I am unsure, however, as to how to approach rule #2. Is there a way to get at the parent record when doing some sort of ItemDataBound on the detail table? That way I can see if a detail record has been assigned and turn off the assign button in the parent record.
Thanks for any and all help!
Bruce
I have an interesting issue I hope someone has an answer for.
I have a situation where I have two types of records, Full and Split. A full record may have from 0 to 3 split records. I want to display the full records and the splits in a detail table under the associated full record. That part is easy.
Here is the fun part...
According to the business rules:
1) If a full record is assigned, then the associated splits should be unavailble for assignment
2) If a split record is selected, then the parent full record should be unavailable for assignment.
I think I can accomplish rule #1 when databinding the detail table. I need to check to see that a person has been assigned to the full record. If so, I can either prevent the detailtabledatabind entirely, or disable the assign button for each detail record.
I am unsure, however, as to how to approach rule #2. Is there a way to get at the parent record when doing some sort of ItemDataBound on the detail table? That way I can see if a detail record has been assigned and turn off the assign button in the parent record.
Thanks for any and all help!
Bruce