I am using Rad Controls 2008 Q3, Visual Studio 2008, C#, and .netFramework 3.5.
I have two issues:
I have a MasterTableView and a DetailTables with two tables. I need to display or hide the Delete and Edit columns programmatically based on a user's security. For example, I have set the ID property for the telerik:radgrid control to G. I can control the columns in the MasterTableView with G.Columns.FindUniqueName("MasterEdit").Visible. However, when I try to access the DetailTables columns as G.Columns.FindUniqueName("Detail1Edit").Visible, I get the following error: Cannot find column with UniqueName 'Detail1Edit'. How do I access the columns in the DetailTables programmatically?
I also have the requirement to display or hide the "Expansion" icon that expands the grid to display the the DetailTables, also based on a user's security. Is there a way to programmatically display/hide this button?
Thank you,
Jack
I have two issues:
I have a MasterTableView and a DetailTables with two tables. I need to display or hide the Delete and Edit columns programmatically based on a user's security. For example, I have set the ID property for the telerik:radgrid control to G. I can control the columns in the MasterTableView with G.Columns.FindUniqueName("MasterEdit").Visible. However, when I try to access the DetailTables columns as G.Columns.FindUniqueName("Detail1Edit").Visible, I get the following error: Cannot find column with UniqueName 'Detail1Edit'. How do I access the columns in the DetailTables programmatically?
I also have the requirement to display or hide the "Expansion" icon that expands the grid to display the the DetailTables, also based on a user's security. Is there a way to programmatically display/hide this button?
Thank you,
Jack