Dear All, I have a small question. How can we show or hide a column in a report based on user selection in the dialog box. I can get the user choice from dialog. No problem on that part. But I was wondering how I can use the user choice to show/hide a field/column which I added to a section group from one of the table that the report is based on.
Set the control’s auto declaration property to Yes to access it’s properties. In run method before super set the visibility property based on the user selection.
Kranthi, one more precision that I need if you have a moment. I am able to hide the field data based on user selection. But the field header remains visible.
Yeah I mean the column label does not hide when I hide the column data. The code line is in the executeSection and is in bold. It hides column rows but not the column header.
Thanks for your support.
public void executeSection()
{
if (!inShowAccrual && ledgerJournalTrans.Voucher != oldLedgerJournalTrans.Voucher)
After your initial response I guessed that some other execute section was responsible for column header still being visible. I commented the lines below to hide the column header. It seems to work fine.