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)

  Print Answers RSS
0 Peter Leow 318
1 Kornfeld Eliyahu Peter 230
2 OriginalGriff 193
3 Maciej Los 185
4 Sergey Alexandrovich Kryukov 162
0 Kornfeld Eliyahu Peter 240
1 Peter Leow 230
2 Maciej Los 220
3 Sergey Alexandrovich Kryukov 207
4 ProgramFOX 205


Advertise | Privacy | Mobile
Web04 | 2.8.150301.1 | Last Updated 12 Mar 2013
Copyright © CodeProject, 1999-2015
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