polksolk
asked on
Datagrid Row-property
I´m using a Datagrid that has 8 columns. When the user clicks in a cell I would like to determine which row and column he clicked. This because if the user clicks in column 5 a window should appear otherwise should the row get highlighted (selected).
When I´m using the Col- and Row-properties of the Datagrid it is one step behind. For example: I click in column 4 and row 2, the col and row properties show the value -1. Next time I click column 5 and row 3, now the properties show the value 4 and 2 (as it should on the first click):
Therefore I have these questions:
1) How do I solve this matter and determining the right column and row?
2) How do I highlight a single row when the user clicks a cell?
Andreas
When I´m using the Col- and Row-properties of the Datagrid it is one step behind. For example: I click in column 4 and row 2, the col and row properties show the value -1. Next time I click column 5 and row 3, now the properties show the value 4 and 2 (as it should on the first click):
Therefore I have these questions:
1) How do I solve this matter and determining the right column and row?
2) How do I highlight a single row when the user clicks a cell?
Andreas
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER