Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Summary and columns visibility conflict
posted

Hi,

I have the summary in webdatagrid like:

<ig:SummaryRow EmptyFooterText="" EnableSummariesFilter="true" ShowSummariesButtons="false">

<ColumnSummaries>

<ig:ColumnSummaryInfo ColumnKey="TOTAL_ALLOCATION">

<Summaries>

<ig:Summary SummaryType="Sum" />

</Summaries></ig:ColumnSummaryInfo>

</ColumnSummaries>

<ColumnSettings>

<ig:SummaryRowSetting ColumnKey="TOTAL_ALLOCATION">

<SummarySettings>

<ig:SummarySetting SummaryType="Sum" FormatString="{1}" />

</SummarySettings>

</ig:SummaryRowSetting>

</ColumnSettings>

</ig:SummaryRow>

But I dynamically control the column's visibility in loading page backend C# code will not work

webdatagrid1.Columns.FromKey("ENTERED_BY").Hidden = true;

The Hidden property only works on the .aspx page but I need to control it programically.

Could you please advise where should I put the code to in order to make it work? I tried with Onload, Oninit, both don't work.

 

Thanks. 

Parents Reply Children
No Data