Hello I have what I think will be a simple question.
I want to hide columns of the datatable that my UltraCombo is bound to but cannot find a property that allows me to do that. In the designer I think I can do it by opening the dialog (clicking that play arrow on the top right) but in code i'm having difficulty.
Also I would like to hide the column header.
Thanks for your help.
cstodgell said:Is there anyway to do it at design time in the designer?
The same properties in the code sample here are available at design-time, assuming that your grid is bound at design-time and therefore has the bands.
cstodgell said:I am also wondering if there is somewya to modify the order of the columns?
If you grid is bound at design-time you could simply click and drag the columns into the order you want. Otherwise, you will have to set the column.Header.Position on each column in code.
I am also wondering if there is somewya to modify the order of the columns?
Thanks for the response.
Is there anyway to do it at design time in the designer?
Hello,
In order to achieve what you are looking for you could handle the IntializeLayout event of the UltraCombo and set the following there :
private void ultraCombo1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { //Hide a column e.Layout.Bands[0].Columns["Symbol"].Hidden = true; //Hide the column headers e.Layout.Bands[0].ColHeadersVisible = false; }
Hope this helps