Dynamically assign/change datakeynames to RadGrid

4 posts, 0 answers
  1. madhavi
    madhavi avatar
    22 posts
    Member since:
    Jul 2014

    Posted 13 Aug 2015 Link to this post

    I have an issue to assign/change different columns to MasterTableView & GridTableView based on user conditions. The grid structure and its columns all are specified in aspx file. 

    I was trying to assign datakeys to mastertable view in page load.

     

    RadGrid.MasterTableView.DataKeyNames = new string[] { "column1, column2" };​

    Its giving error, the column neither a DataColumn nor a DataRelation for table xxx. Please guide how to assign datakeys programatically to mastertable view and grid view. 

    Thank you,

    Madhavi

     

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Aug 2015 Link to this post

    Hi,

    Looking at the shared code line, it seems your question is not related to RadGridView for SilverlightI would suggest you to post it in the respective forum category.

    Regards,
    Dimitrina
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. madhavi
    madhavi avatar
    22 posts
    Member since:
    Jul 2014

    Posted 14 Aug 2015 in reply to Dimitrina Link to this post

    Hi Dimitrina,

    Could you help me with the link, where exactly should I post.  Thank you.

  5. madhavi
    madhavi avatar
    22 posts
    Member since:
    Jul 2014

    Posted 14 Aug 2015 in reply to madhavi Link to this post

    I found it. I posted under the following forum

    http://www.telerik.com/forums/aspnet-ajax/grid

    Thanks.

Back to Top