Select Rows from a Datagrid and send to an Array

Asked

Viewed 657 times

0

I have a WPF application where I have a DataGrid with various information. I wish the user could choose multiple lines and store the line information in one array (or not) for me to send to another screen and play in another DataGrid.

I’m doing without CheckBox, but I prefer that the selected line changes color...

Someone could give me an example or a solution to this problem?

  • When a line of a Datagrid is selected it already changes color automatically, you want something other than this?

  • But when he clicks on another, the color goes back to normal.

  • In my application where I use Datagrid when clicking another line with the Ctrl button they are highlighted in blue.

  • I’m making an application where the user can choose several Datagrid items. Automatically it should select several items, without the need to hold Ctrl

1 answer

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.