Ways to identify which cell was clicked on WPF Grid?
WPF
2
Posts
2
Posters
0
Views
1
Watching
-
Hi I have a 3x3 matrix grid. If a user on particular cell, how can I identify the cell cordinates after click? Please advise. thanks PJ
Follow your goals, Means will follow you ---Gandhi---
mittalpa wrote:
If a user on particular cell, how can I identify the cell cordinates after click?
Usually by handling events in an element that's in the cell, not on the grid itself. You could probably also loop through the column and row definition collections on the grid and hit-test against the Actual/Width/ActualHeight values.
Mark Salsbery Microsoft MVP - Visual C++ :java: