Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I tired to hide a column of my Telerik Radgrid.I tired

rg.MasterTableView.DetailTables[0].Columns[6].Display = false;
rg.MasterTableView.Items[0].ChildItem.NestedTableViews[0].GetColumn("DeletePool").Visible = false;


tired on prerender event so ..but couldnot able to do so.
My Design is like that
XML
My design is like this
 <telerik:RadGrid ID="rgPoolType"  Width="99%" AutoGenerateColumns="false" >
                               <MasterTableView AllowNaturalSort="true" DataKeyNames="ID" ">
                               <DetailTables>
                                        <telerik:GridTableView DataKeyNames="ID" runat="server">
                                            <Columns>
                                                <telerik:GridTemplateColumn HeaderText="Pool Name" SortExpression="Name" UniqueName="PoolName"></telerik:GridTemplateColumn></columns> </DetailTables>



Plz suggest ..
Posted
Updated 28-Mar-18 11:34am
v2

1 solution

You need to hide the column in Rad grid pre render event.
 
Share this answer
 
Comments
Maciej Los 29-Mar-18 4:03am    
5 years too late!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900