Hello, I'm trying to create a copy of xamDataGrid, so that I could make changes on the copy without affecting the original object. Is there a way to do it?
I'll be more specific:I have a window that display print preview of the xamDataGrid.I want to cancel the Theme of the grid before I print it and return it later. If I do so on the original xamDataGrid, the user can see the changes in the theme and it does not look good. I want it to be transparent to the user.
So I need to work on a copy of the grid.
Hello, The solution with the CellValuePresenterStyles didn't really did the trick. It's like it does not response do to fact that I'm using a theme…I have attached a project example to better explain my problem.When printing with a black&white printer, the labels printed in gray background and it does not look so good on paper.I want all the settings to remain exactly the same, including the column that displayed with four decimal places. The only thing that needs to change is the background and foreground colors of the labels – transparent and black for that matter.I'd be happy if you could help me with this.
HI,
If you use the TabularReportView Class you can exclude CellValuePresenterStyles and LabelPresenter styles.
Here a link:
http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=xamDataPresenter_Exclude_DataPresenter_Settings_When_Printing.html
http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v12.2~Infragistics.Windows.DataPresenter.TabularReportView_members.html
OK... But I'm not trying to export the xamDataGrid... I'm creating a XamReportPreview based on the xamDataGrid
The exporting does an export options parameter that can exclude certain features of the XamDataGrid.
Here is a help link: http://help.infragistics.com/NetAdvantage/WPF/Current/CLR4.0/?page=xamDataPresenter_Exclude_DataPresenter_Settings_when_Exporting.html
Sincerely,
Matt
Developer Support Engineer
Hello Matt,Thank you for the replay but the solution is not exactly solve my problem ... When I copy the Datasource, it's not refer to the definitions and designs sets in the original xamDataGrid.I'm forced to create a function that copies all the filters, sorts, settings etc.
It's too bad that Infragistics don't have a built-in function that does this or something similar.
Regarding the solution of creating another xamDataGrid in XAML, This is a big solution with a lot of Grids... I do not want to make a copy of each grid and make changes twice in the future.