Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF DataGrid Scrolling
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 12-Mar-13 15:21pm

1 solution

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

Solution 1

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
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 12 Mar 2013
Copyright © CodeProject, 1999-2014
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