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

DetailTableDataBind

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 04 Feb 2009, 03:09 PM
I have a grid with one master table and one detail table.  In the DetailTableDataBind event I want to be able to query a database using the values from 2 columns in the master table, the query will determine the contents of the detail table
In the event handler I have this code

GridDataItem

 

dataItem = (GridDataItem)e.DetailTableView.ParentItem;

How can I obtain the values from the 2 columns in the parent master table ?  I cant use dataItem.GetDataKeyValue  because the detail table is not linked by the key value.  Is there someway I can obtain these values from dataitem  ?

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Feb 2009, 09:11 AM
Hello Mark,

We answered your question in another thread. You can get the parent data item and then either access the cell contents directly or extract the values using a hashtable.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
mww
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or