Click here to Skip to main content
13,143,185 members (58,385 online)
Rate this:
Please Sign up or sign in to vote.
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 14:21pm

1 solution

Rate this: bad
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:[^].


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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