I have a grid that I create about 6 grid bound columns for. I fire off the oncolumncreated event to hide and unhide two columns depending on the data being displayed. The problem is the examples I have found show changing GridBoundColumn display or visibility setting, but when I stop the code execution during the event all of the columns are Expand Columns? Here are my grid settings:
<
telerik:RadGrid ID="rgLG"
runat="server"
EnableEmbeddedSkins="false"
AutoGenerateColumns="false"
Visible="true"
OnNeedDataSource="rgLG_OnNeedDataSource"
Skin="Report"
EnableLinqExpressions="false"
AllowSorting="false"
ShowStatusBar="false"
AllowPaging="false"
onitemcommand="rgLG_ItemCommand"
oncolumncreated="rgLG_ColumnCreated" >
<MasterTableView AllowSorting="true"
AlternatingItemStyle-BackColor="Gray"
CommandItemDisplay="Top"
DataKeyNames="LG_ID" >
Thanks jim