2 posts, 0 answers
  1. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 04 Feb 2009 Link to this post

    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



    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  ?


  2. Daniel
    Daniel avatar
    4935 posts

    Posted 06 Feb 2009 Link to this post

    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.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
Back to Top