Click here to Skip to main content
12,999,744 members (40,905 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hi all,

I working in Rdlc reports fine successfully running.

when I binding data some of customers have no city and some of customers have value.

my intention is if value is there than no problem otherwise hide the row.

ex: no address
-- -------
1 address1 //
//hide this row

2 address1

print like this 1 address1

2 address1
Posted 28-Mar-13 2:58am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This Solution Will Help you to resolve your problem
For i As Integer = dt.Rows.Count - 1 To 0 Step -1
    Dim row As DataRow = dt.Rows(i)
    If row.Item(0) Is Nothing Then
    ElseIf row.Item(0).ToString = "" Then
    End If

for RDLC You Can Use The Belowing Method..

In the Classic client, on the Tools menu, click Object Designer.
In Object Designer, click Report, select the report that you want to modify, and then click Design.
On the View menu, click Layout.
In Visual Studio, in the Report.rdlc file, select the control or table row that you want to show conditionally.
On the View menu, click Properties Window.
In the Properties window, expand Visibility.
Under Visibility, in the Hidden field, select <Expression…> from the drop-down list.
In the Edit Expression window, enter the conditional statement for when the control or row is hidden, and then click OK.
The following illustration shows an example of a conditional visibility expression on report 2, General Journal - Test, in the standard application.

For more help you can check here[^]
U@007 28-Mar-13 9:18am
Hi rakesh
this is rdlc reports so I need to write .rdlc reports textbox expression.
U@007 28-Mar-13 9:43am
Hi rakesh
Invs2010=>rdlc=>textbox=>propeties=>select show or hidden choice=>writing expression


but not working

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 28 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100