This is a migrated thread and some comments may be shown as answers.

FormTemplate DetailTables + MasterTableView + OnItemDataBound

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joey
Top achievements
Rank 1
Joey asked on 25 Sep 2008, 09:16 PM
I have a grid bound to a heirarchal data source. The MasterTableView and each DetailTable beneath it have their own unique custom form template. I'm using the OnItemDataBound event to select the correct values for some drop downs and other custom controls within each custom form template.

How do I determine which level in the heirarchy has fired the OnItemDataBound event so that only the code specific to that levels form template is executed? At the moment the program throws exceptions because the selection code for all the templates fire regardless of which form template is being shown.

thx, joey

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Sep 2008, 03:50 AM
Hi Joey,

Go through the following help article which explains more on this regard.
Distinguish grid rows in hierarchy on ItemCreated/ItemDataBound

Thanks
Shinu.
Tags
Grid
Asked by
Joey
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or