Page 1 of 1

Access a Column into a table

Posted: Sun Feb 12, 2012 2:05 am
by galawij
Hi everybody,
I have a question and I need your help,PLS :shame:
How can I access a column in a table?
Iwant to show or hide column in a table, when data source is database.
thanks in advance.

Access a Column into a table

Posted: Mon Feb 13, 2012 3:59 am
by HighAley
Hello.
galawij wrote:I have a question and I need your help,PLS :shame:
How can I access a column in a table?
Iwant to show or hide column in a table, when data source is database.
thanks in advance.
Please, try to use next code in the Begin Render event of the report

Code: Select all

this.Table1.DeleteColumns(firstColumn, lastColumn)
Thank you.

Access a Column into a table

Posted: Mon Feb 13, 2012 5:13 am
by galawij
Hi Aleksey Andreyanov,
Thanks very much ...
I Used This code in the Begin Render event of the report And Table,
Code:
this.Table1.DeleteColumns(0, 5)
But It Does not Work.:emb:
I am Using Stimulsoft Reports.Net 2011.3 Version.
PLS Help me...

Access a Column into a table

Posted: Tue Feb 14, 2012 2:08 am
by HighAley
Hello.
galawij wrote:Hi Aleksey Andreyanov,
Thanks very much ...
I Used This code in the Begin Render event of the report And Table,
Code:
this.Table1.DeleteColumns(0, 5)
But It Does not Work.:emb:
I am Using Stimulsoft Reports.Net 2011.3 Version.
PLS Help me...
Please, send us your report template with data for analysis.

Thank you.

Access a Column into a table

Posted: Tue Feb 14, 2012 2:38 am
by galawij
Ok,Thanks.
I send you report template and data.

Access a Column into a table

Posted: Tue Feb 14, 2012 9:43 am
by HighAley
galawij wrote:Ok,Thanks.
I send you report template and data.
You couldn't delete all columns of the table.
You could do it in the Click event on the Form or in the Begin Render event of the Report (not the Page).
Look at the attached report template.

Thank you.

Access a Column into a table

Posted: Wed Feb 15, 2012 1:02 am
by galawij
You couldn't delete all columns of the table.
You could do it in the Click event on the Form or in the Begin Render event of the Report (not the Page).
Look at the attached report template.
Hello Aleksey Andreyanov.
It Works Exactly,How I Meant.
So,I Thank you So Much.
Be Successful.

Access a Column into a table

Posted: Wed Feb 15, 2012 11:56 pm
by Andrew
Great!

Have a nice day!
Thank you.