Page 1 of 1

Hide emtpy Table Rows

Posted: Mon Jul 19, 2010 5:51 am
by Ipad
Hello,

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

Thanks in advance

Ipad

Hide emtpy Table Rows

Posted: Mon Jul 19, 2010 8:46 am
by Anton Lozovskiy
Hello,

Do you mean StiGridControl ?

Thank you.

Hide emtpy Table Rows

Posted: Tue Jul 20, 2010 12:55 am
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

Hide emtpy Table Rows

Posted: Wed Jul 21, 2010 2:51 am
by Anton Lozovskiy
Hello,

Set the CanShrink property of the required cells to true.

Thank you.

Hide emtpy Table Rows

Posted: Wed Jul 21, 2010 4:28 am
by Ipad
Thanks...

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

Thanks in advance

Ipad

Hide emtpy Table Rows

Posted: Wed Jul 21, 2010 7:10 am
by Anton Lozovskiy
Hello,

Use the CellDockStyle property to move cells up.

Thank you.

Hide emtpy Table Rows

Posted: Wed Jul 21, 2010 7:46 am
by Ipad
Hello AntonLoz,

it works,

many thanks for your help and the very good support!

Best Regards
Ipad

Hide emtpy Table Rows

Posted: Wed Jul 21, 2010 8:30 am
by Andrew
We are glad to help you!