How can I tell if an infragistics ultragrid row is actually visible?

Posted on 2008-11-10
Last Modified: 2013-11-15
How can I tell if a row is visible? I don't mean whether or not it is hidden, I mean whether or not it has been scrolled out of view.  Any ideas on how to do this?
Question by:guxiyou

    Author Comment

    Specifically, if I have the row, how do I tell if it is visible?
    LVL 17

    Accepted Solution

    You can get a list of the visible rows from the RowScrollRegion of a Band.  The RowScrollRegion's VisibleRows array contains a list of VisibleRow objects, which you can use to compare against the row you're searching for (in the below example, I was just searching for row at index 1.
    Infragistics.Win.UltraWinGrid.UltraGridRow row = ultraGrid1.Rows[1];
    foreach (Infragistics.Win.UltraWinGrid.VisibleRow rowVisible in ultraGrid1.DisplayLayout.RowScrollRegions[0].VisibleRows)
         if (rowVisible.Row.Equals(row)) { 
              MessageBox.Show("The row is visible"); return;  
    MessageBox.Show("The row is not visible");

    Open in new window


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
    How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from ( Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now