Access a Column into a table

Stimulsoft Reports.NET discussion
Post Reply
galawij
Posts: 16
Joined: Sat Feb 11, 2012 4:37 am
Location: U.S

Access a Column into a table

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Access a Column into a table

Post 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.
galawij
Posts: 16
Joined: Sat Feb 11, 2012 4:37 am
Location: U.S

Access a Column into a table

Post 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...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Access a Column into a table

Post 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.
galawij
Posts: 16
Joined: Sat Feb 11, 2012 4:37 am
Location: U.S

Access a Column into a table

Post by galawij »

Ok,Thanks.
I send you report template and data.
Attachments
1641.DataBase.rar
(111.86 KiB) Downloaded 188 times
1640.ExampleReport.mrt
(11.47 KiB) Downloaded 185 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Access a Column into a table

Post 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.
Attachments
1646.ExampleReport_modified.mrt
(11.47 KiB) Downloaded 236 times
galawij
Posts: 16
Joined: Sat Feb 11, 2012 4:37 am
Location: U.S

Access a Column into a table

Post 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.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Access a Column into a table

Post by Andrew »

Great!

Have a nice day!
Thank you.
Post Reply