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