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
40
Xamgrid AddnewRow
posted

Hi team, i am new to WPF and Infragistics world, need help from WPF experts,

We are using Xamgrid in our application, we enabled AddNewRow , everything is fine with new row functionality when we tab out from row, new row is getting added to grid,but we have a requirement when we click + symbol on header row grid only we need to add new row, how can i achieve this functionality 

  • 17475
    Offline posted

    Hello Haranath,

    The AddNewRowSelectorCellControl can be modified to add custom logic for adding new row to XamGrid control as Nikolay has described at http://ko.infragistics.com/community/forums/p/54544/281472.aspx#281472.

    To suppress the adding of a new row on Enter or Escape key down, you can handle the PreviewKeyDown event to check the pressed key and raise flags. Based on the raised flags you can decide whether the CellExitingeditMode event should be canceled or not. The attached sample illustrates this approach.

    Please feel free to let me know if you have any questions.

    AddRowOnEnterOnly.zip