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,
Okay, I see the problem now. this looks like a bug to me. I am forwarding your post to Infragistics Developer Support so they can look into it.
Thanks Alex
Anil,
I created a support case on your behalf.
It is best to continue the discussion there.
Alex.
Hi Alex,
Yes, that was the same thing. Also I have got another problem besides that. When I remove column and restore it few times, column width will be disorder. Please check the screen shot for the problems which I'm facing. Following is the initial screen shot:
After few times add and remove columns:
Just to make sure we are getting the same thing, I attach a screenshot of what I have reproduced in this scenario. Is this the same as you get?
Thanks Mike