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

Dynamically assign/change datakeynames to RadGrid

3 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
madhavi
Top achievements
Rank 1
madhavi asked on 13 Aug 2015, 09:58 PM

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

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Dimitrina
Telerik team
answered on 14 Aug 2015, 11:46 AM
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
0
madhavi
Top achievements
Rank 1
answered on 14 Aug 2015, 02:14 PM

Hi Dimitrina,

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

0
madhavi
Top achievements
Rank 1
answered on 14 Aug 2015, 02:25 PM

I found it. I posted under the following forum

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

Thanks.

Tags
GridView
Asked by
madhavi
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
madhavi
Top achievements
Rank 1
Share this question
or