I use extendlastcolumn.
Last column is aligned to right.
there is a lot of empty space to the left of the last colum, in all rows.
( the text in all rows takes little place of the column)
While printing, with ultraprintperviewdialog, The last column is empty.- it is being shown, but there
are no values on it.
Hi,
That sounds like it might be a bug. Can you duplicate this in a small sample project?
If so, you can either post your sample here or Submit an incident to Infragistics Developer Support
var YAHOO = {'Shortcuts' : {}}; if (typeof YAHOO == "undefined") { var YAHOO = {}; } YAHOO.Shortcuts = YAHOO.Shortcuts || {}; YAHOO.Shortcuts.hasSensitiveText = false; YAHOO.Shortcuts.sensitivityType = []; YAHOO.Shortcuts.doUlt = false; YAHOO.Shortcuts.location = "us"; YAHOO.Shortcuts.document_id = 0; YAHOO.Shortcuts.document_type = ""; YAHOO.Shortcuts.document_title = "infra"; YAHOO.Shortcuts.document_publish_date = ""; YAHOO.Shortcuts.document_author = "gilad.sefti@mailpoalim.co.il"; YAHOO.Shortcuts.document_url = ""; YAHOO.Shortcuts.document_tags = ""; YAHOO.Shortcuts.document_language = ""; YAHOO.Shortcuts.annotationSet = { }; YAHOO.Shortcuts.headerID = "576f70c41aa3116fc43e3b1068df42c7"; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Infragistics.Win.UltraWinGrid; using Infragistics.Win; using Infragistics.Win.Printing; namespace WindowsApplication6 { public partial class Form1 : Form { UltraPrintPreviewDialog UltraPrintPreviewDialog1; public Form1() { InitializeComponent(); ultraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn; UltraPrintPreviewDialog1 = new UltraPrintPreviewDialog(); UltraGridPrintDocument UltraGridPrintDocument = new UltraGridPrintDocument(); UltraPrintPreviewDialog1.Document = UltraGridPrintDocument; UltraGridPrintDocument.Grid = ultraGrid1; } private void button1_Click(object sender, EventArgs e) { UltraPrintPreviewDialog1.ShowDialog(); } private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (UltraGridColumn col in ultraGrid1.DisplayLayout.Bands[0].Columns) { col.CellAppearance.TextHAlign = HAlign.Right; } } private void Form1_Load(object sender, EventArgs e) { List<string> ls = new List<string>(); ls.Add("1"); ultraGrid1.DataSource = ls; } } }