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
1405
Add button only in NewlyAddedRecord
posted

Hi,

I have an xamdatagrid in which the last column contains two buttons : Edit and Delete. When I add a new record I want to hide those two buttons and add a new button called Save only for that row. Can someone please suggest how to achieve this.

Thanks

Parents
No Data
Reply
  • 30945
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into the functionality that you have described and I can suggest adding the Save button over the other two buttons and using a trigger in the ControlTempalte of the CellValuePresenter to change the visibility of the save button, based on the Tag property of the Record. You can use the RecordInitialized, in order to set the Tag property of the newly added records and this way, to show the Save button to the newly added records. I have created a sample application for you, that demonstrates  the approach I have mentioned.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    ButtonInNewlyAddedRow.zip
Children