Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6889387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:08:59+00:00 2026-05-27T06:08:59+00:00

I have a dev express report. I want to search for all controls on

  • 0

I have a dev express report. I want to search for all controls on the report.

The normal convension in windows forms would be:

foreach (Control c in Control.ControlCollection)
{
         ........
}

Unfortunately this will not work in Dev Express form. Any solutions?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:09:00+00:00Added an answer on May 27, 2026 at 6:09 am

    There are lots of such questions regarding to find control in report or highlighting cell on mouse over etc..

    xrLabel1.Text = ((XRLabel)((XtraReport)xrSubreport1.ReportSource).FindControl("xrLabel1", false)).Text;
    

    subreport control – Check attached sample here
    How can set the text of a label on a Subreport?

    Check this code snippet to take some idea for your functionality..

    Private Sub XtraReport1_BeforePrint(ByVal sender As Object, ByVal e As
    System.Drawing.Printing.PrintEventArgs)
        Dim collection As XRControlCollection = (CType(CType(sender, DevExpress.XtraReports.UI.XtraReport),
    Q274540.XtraReport1)).Detail.Controls
        For i As Integer = 0 To collection.Count - 1
            If TypeOf collection(i) Is XRLabel Then
                If (CType(collection(i), XRLabel)).DataBindings.Count <> 0 Then
                    'your code here
                End If
            End If
        Next i
    End Sub
    

    XRControl.BeforePrint Event

    Report have some structure and you have find control at particular container as you do you in GridView. e.g. find control in editTemplate .. the particular container of the control

    Check these links get more information about this:
    Loop thru controls of Report or find all visible strings
    Find TableCell Controls inside a report
    Find all databound controls on report

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

DevExpress have no simple report viewer control for using an XtraReport on a Windows
I have a problem with a Dev Express component, namely AspxComboBox. My context is
I have a WPF Dev Express DxGrid that is bound to an ObservableCollection in
I am running VS2010 Ultimate, I used to have VS Web Dev 2010 Express
I have a Dev-express Tree Structure with Drag and Drop capability. After Drag and
I only have SSMS 2008 Express on my dev machine. What tools are there
I am using aspx controls from dev express. The issue I am having is
I am interested in starting Windows 7 Mobile dev and have searched the net
I have an unbound XtraReport that has a subreport control which contains another report.
I have a Dev Express ASPxComboBox: <dx:ASPxComboBox runat=server ID=DropDownListTemplates DataSourceID=SqlDataSourceTemplates ValueField=template_id TextField=name ValueType=System.Int32 Enabled=false

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.