P
P
Pitonist2242019-11-01 21:00:09
WPF
Pitonist224, 2019-11-01 21:00:09

How to select multiple datagrid cells?

How can I make it so that when you click on the middle cell (number 53), the cells are highlighted as in the screenshot?
5dbc727773ac9566062273.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wundarshular, 2020-01-21
@Wundarshular

Have you tried reading the column and row number of the selected cell and setting the others (from i-1,j-1 to i+1,j+1) to have the IsSelected property set to true?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question