I use ultraprintpreviewdialog, to print my grid.
When I use Cardview, it doesnt show cardview on the printing, but the normal view.
what to do?
Printing in CardView was not supported until NetAdvantage v8.2. So in order to maintain backward compatabiilty, we added a property to enable printing in CardView mode. So, assuming you are using v8.2 or higher, you just have to enable CardView printing like so:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; layout.AllowCardPrinting = AllowCardPrinting.RootBandOnly; }
Note that printing in CardView mode is only supported for the root band, you cannot print child bands in CardView mode.