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 ChiliBiscuut and Jacek,
Thank you for your replies.
ChiliBiscuut,
I have created a sample application for you that shows how you can implement the functionality that you are looking for with the XamDataGrid. Please note that this is a Silverlight thread and it is also for the XamGrid control and if you have any questions regarding the XamDataGrid control you should post the questions here: http://es.infragistics.com/community/forums/141.aspx.
Jacek,
I have tested the sample application that I have attached to this thread with 13.1 and when setting the ColumnWidth property of the XamGrid to “*”, the approach is still working as expected. I can suggest testing the sample with the latest service release of version 13.1.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
Hello,
Code from your example works fine as long i don't set Width of column to "*" or constant value. When im doing this, CellControlAttached event isn't fired for AddNewRow row. Could you please take a look on this?
Would you know how I would implement the same for XamDataGrid.
I want to add row only when + is clicked, and not anywhere else on the grid.
Thank you for your reply. I have been looking into your question and I can suggest referring to your other forum thread where I have already replied to you questions.
Krasimir
Developer Support Engineer
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.