Dear sir/madam,
in order to fill the empty space, only graphically being understood, I found the usefull grid.DisplayLayout.EmptyRowSettings.ShowEmptyRows = true;
that let me reach following layout :
but how can I obtain the following ?I can't find any "ShowEmptyColumns" property...Is there any ways?
Thanks in advance
Gianni
I have just submitted the request.
Thank you
Hi Gianni,
Yes, you are correct, adding unbound columns is not an ideal solution and it will be difficult to manage.
GiannisKhan said:Do you think could be reasonable to submit a request for a "EmptyColumnSetting" specular to the EmptyRowSettings?
Yes, I certainly encourage you to Submit a feature request to Infragistics
Ciao Mike,
to add unbounded column will allow to manage the layout, but with lot of code, because it has to replicate the appearance of the empty rows and because the columns added has to react on changed size; if you shrink down the grid added column will become too narrow (with autofit style on) at if you considerably reduce the size they has to disappear otherwise the horizontal scroll bar become visible, etc...
Do you think could be reasonable to submit a request for a "EmptyColumnSetting" specular to the EmptyRowSettings?
Thanks again for you fast reply.Gianni
To add an unbound column, you call the Add method on the Columns collection of the band. And of course you can apply an appearance to the unbound column, just like you would for any other column.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridColumn column = band.Columns.Add("My Column"); column.CellAppearance.BackColor = Color.Yellow; column.Header.Appearance.BackColor = Color.Gold; }
Hi Mike,
I already use the autofit, when possible, but if you have just 2 or 3 columns, to enlarge them is worst than have the empty space.
What do you mean when you say unbound columns? How can I do that? can that columns be shown with different appearance respect other columns with data?
Thanks