The xamGrid by default allow you to add a row by hitting the enter key or by clicking off of it. How do I only allow the enter key to be press to add a record and disable adding a row when clicking off of it?
Hello,
I have created a sample application for you, which demonstrates an approach for implementing the functionality that you are looking for. In order to do that I have used the CellExitingEditMode event of the XamDataGrid and cancel it until the Enter key is pressed or Escape key is pressed in order to cancel the adding.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi ,
This code is working fine with normal XamGrid columns. With Templated column its not working.
I also want to disable loast focus functionality and want to add row only on enter hit and cancel on escape. But my grid contains number of template columns which contains XAMMutilComboBoxEditor, datepicker etc.
One more issue i am facing is , I need to add new row (where user can enter the values to add the new row) in the bottom means end of all the rows. But this new row is coming at the end of the grid. That is if grid width is 500 and it contains only two rows, then the new row should come in the third row not in the ned of the grid. (currently showing some white space between the grid last row and the new row i.e. end of the grid).
And also I am not able to set this new row in editable mode on load. I dont want user to double or single click to enter data in this row. It should always be in editable mode to enter data.
I want to attach a sample code for this. But not able to attach it currently. I am working in WPF not in silverlight so please help in WPF .
Please help me by providing some WPF sample project with these isue or give some guidance to solve these.
Right on Krasimir! Thanks for the solution!