Click here to Skip to main content
15,891,846 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In Windows Forms I have found a way to tell if the SelectedItem in a DataGridView is visable or displayed in the DataGridView control or is scrolled out of view. I cannot seem to find how do the same using DataGrid in WPF. I found the DataGrid.SelectedItem property which returns a DataGridItem object representing the selected item in the DataGrid control, but I cannot find anything that would indicate of this DataGridItem object is visable or displayed in the control or is scrolled out of view after being selected? Any ideas?
Posted

1 solution

Are you sure you need to test if an item is visible? Why? What will you do with this situation when you find that?

Maybe you rather need to make is visible when required? Here is how: http://msdn.microsoft.com/en-us/library/cc673083%28v=vs.95%29.aspx[^].

—SA
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900