This is a migrated thread and some comments may be shown as answers.

table row change height or delete row

3 Answers 252 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 19 Mar 2014, 01:59 PM
Hello Community,

i can't figure it out...

I createt in the designer a table with some rows. And i want to dynamiclly "delete" or "hide" some of them. I appended some screenshots.

I don't get it. How can i do it?

Here is some code:

I tryed this:

                Me.tbModernisierungskosten.Height = New Telerik.Reporting.Drawing.Unit(0.0)
                Me.tbTitelModernisierungskosten.Height = New Telerik.Reporting.Drawing.Unit(0.0)
                Me.TextBox265.Height = New Telerik.Reporting.Drawing.Unit(0.0)

                tbModernisierungskosten.Visible = False
                tbTitelModernisierungskosten.Visible = False
                TextBox265.Visible = False

                tbModernisierungskosten.Value = ""
                tbTitelModernisierungskosten.Value = ""
                TextBox265.Value = ""

And this:

                tblFinanzierung.Body.Rows(2).Height = Unit.Cm(0.1)

3 Answers, 1 is accepted

Sort by
0
KS
Top achievements
Rank 1
answered on 24 Mar 2014, 02:06 PM
Hi,

In no case do not set textboxes to be invisible, remove them or set their sizes to zero. Filtering the data for the row group is enough to hide the row. Just select the group in the Group Explorer and add a filter that will remove the row.

-KS
0
Daniel
Top achievements
Rank 1
answered on 25 Mar 2014, 04:08 PM
Hello KS.

Thank you, this meanwhile helped me.

But i still have Problems to set the Filter.

i added a couple of screenshot, maybe have a look at them.

I think at the screenshots you can see what i did.

What i'm doing wrong?

kind regards
daniel
0
Stef
Telerik team
answered on 26 Mar 2014, 01:28 PM
Hi Daniel,

The error indicates type mismatch in both sides of an equation (some of the defined filter rules). You are trying to compare a number and a string without the required conversion. Knowing the type of fields and the result type of the calculations in the expressions, please use the built-in Conversion functions to supply the correct types on both sides of the equation.

Regards,
Stef
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
KS
Top achievements
Rank 1
Daniel
Top achievements
Rank 1
Stef
Telerik team
Share this question
or