Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
178
Simple selection in xamdatagrid?
posted

Hello,

I want to do simple selection in xamdatagrid like in excel. I want to, if a key is pressed down (like shift or control)

to select the records I want by clicking on a cell in the rows I am interested in and select all records and these

should be marked and be in the SelectedItems collection. The last row I clicked must be the active row or record.

The style of the selected rows should be clear and easy to see, could somebody provide me with a code sample in C#?

 

I am using a base class which customizes XamDataGrid and want to be able to do this programmatically.