Hi,
I have grid with columnchooser and have set wrapheadertext to true. So when I remove all columns from column chooser then the header collapse completely. So I cannot see even columnchooser button so that I can restore the column. I think this was because of the wrapheadertext property. It tried to wrap empty string (as there is no columns) and set height of the header accourdingly. So, it wasn't even displaying column chooser button. Is there a way to work around this problem?
Thanks,
Anil
Hi Anil,
I'm sorry, but you lost me early on in your description of the problem. Can you explain in more detail exactly what's happening? Perhaps you could post a small sample project demonstrating the issue.
Hi Mike,
In my grid, I have column chooser and also I have wrap the header text. When you remove all columns, grid header will be collapse (I think header height was set to 0). So, you cann't now restore the column because column chooser button will not be visible now. Here is the sample code:
this.ultraGrid1.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.ColumnChooserButton; this.ultraGrid1.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True; this.ultraGrid1.DisplayLayout.Override.WrapHeaderText = Infragistics.Win.DefaultableBoolean.True; DataTable DT = new DataTable(); DT.Columns.Add("Name"); DT.Columns.Add("Address"); DT.Rows.Add(new object[] { "Name1", "Add1" }); DT.Rows.Add(new object[] { "Name2", "Add2" }); DT.Rows.Add(new object[] { "Name3", "Add3" }); this.ultraGrid1.SetDataBinding(DT, null, true);
Regards,