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
2690
Select all Deselect all
posted

Can Ctrl A be mapped to select All when using xamgrid

If the user selects only a couple of rows and makes only few cell changes is it possible to identify that there is a change and only manipulate those cells(like reset only those cells on click of button)?

  • 40030
    Offline posted

    Hi, 

    You can listen for the Ctrl + A key in the KeyDown event of the xamGrid

    void grid_KeyDown(object sender, KeyEventArgs e)

            {

                if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control && e.Key == Key.A)

                {

                }

            }

    As for your other question, you'd have to keep track of any manipulations that occur on your data objects, and mark them as such, as the xamGrid doesn't keep track of the state of your data. 

    -SteveZ