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

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?
guxiyouAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guxiyouAuthor Commented:
Specifically, if I have the row, how do I tell if it is visible?
0
ZeonFlashCommented:
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

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.