Hi,
Thanks for the reply, The solution that you have provided is exactly what we want
After implementing the solution we are facing the same issue, when I click on print I can see the last column width change on screen, and once print order is give the last column width gets refreshed to its original size,
Here is my code,
//resultsGrid -> its our DataGrid of type DataGridControl
//Status-> is our 7th column whose width I want to change while Printing.
DataGridCollectionView collectionView = (DataGridCollectionView)resultsGrid.ItemsSource;
using( collectionView.DeferRefresh() )
{
foreach (var item in resultsGrid.Columns)
{
if (item.FieldName == "
Status")
{
item.Width = 70;
}
}
resultsGrid.Print();
foreach (var item in resultsGrid.Columns)
{
if (item.FieldName == "
Status")
{
item.Width = 600;
}
}
}
Please see the documents of screen shots for more understanding of our issue, and please provide the solution for this as soon as possible.
Thanks,
Parthiv.