Hi,
I have a XamDataGrid and the AllowAddNew="True" property is set.
In this grid, i have some custom columns, containing buttons. I do not want to show these buttons on the New Record. How do i achieve this? any suggestions?
Please find the image below:
Regards,
Sagar
Hello Venkata,
Thank you for your post. I have been looking into your question and I assume that you are having a template for the CellValuePresenter and there you are adding the button in the ContentTempalte. If this is correct, I can suggest using a DataTrigger in the ControlTemplate’s Triggers and there you can check whether the record that is using this CellValuePresenter is a AddNewRecord, by using the IsAddRecord property of the DataRecord corresponding to the CellValuePresenter. I have created a sample application for you that shows how you can implement this approach.
Please let me know if I can assist you with anything else.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.