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.
By the way, If I remove the summary, dynamically control the column's visibility will work.
Hello Annie,
Thank you for contacting Infragistics Developer Support!
I was not able to reproduce the behaviour that you're seeing on your side. I have attached the sample project I used to test this. Please test this project on your side; whether or not it works correctly may help indicate the nature of this issue. If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.Please let me know if I can provide any further assistance.