Hide emtpy Table Rows

Stimulsoft Reports.NET discussion
Post Reply
Ipad
Posts: 17
Joined: Mon Jul 05, 2010 3:29 am
Location: Köln

Hide emtpy Table Rows

Post by Ipad »

Hello,

is there any chance, to hide empty rows from a DataGrid?

Thanks in advance

Ipad
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

Hide emtpy Table Rows

Post by Anton Lozovskiy »

Hello,

Do you mean StiGridControl ?

Thank you.
Ipad
Posts: 17
Joined: Mon Jul 05, 2010 3:29 am
Location: Köln

Hide emtpy Table Rows

Post by Ipad »

Hello,

i dont know, what do you mean with StiGridControl.

I used a normal Table fom Stimlusoft.
This table contains 2 columns and 10 rows. The Rows were from a datasource, which is
based on a SQL Querry.

If my SQL Querry got no Data´s for that row, i want to hide these row.
This is my Problem.

Thanks
Ipad
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

Hide emtpy Table Rows

Post by Anton Lozovskiy »

Hello,

Set the CanShrink property of the required cells to true.

Thank you.
Ipad
Posts: 17
Joined: Mon Jul 05, 2010 3:29 am
Location: Köln

Hide emtpy Table Rows

Post by Ipad »

Thanks...

The cell is hidden, but the underlying cells do not move on.
So what can I do?

Thanks in advance

Ipad
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

Hide emtpy Table Rows

Post by Anton Lozovskiy »

Hello,

Use the CellDockStyle property to move cells up.

Thank you.
Ipad
Posts: 17
Joined: Mon Jul 05, 2010 3:29 am
Location: Köln

Hide emtpy Table Rows

Post by Ipad »

Hello AntonLoz,

it works,

many thanks for your help and the very good support!

Best Regards
Ipad
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Hide emtpy Table Rows

Post by Andrew »

We are glad to help you!
Post Reply