We have an ultrawingrid which is being loaded each time depending upon a selection criteria. There is one column whose style changes each time while rest of the columns just displays the value. During one such selection, we are having the EditorComponent of that column assigned to a control inside UltraControlContainerEditor. Following that, there is another selection to change the column style to check box. The style does not show up on the grid column.
All the style changes/editor component assignments are being done in the InitializeLayout event of the grid. Why is the style not getting reflected on the column?
Hi Sowmya,
Setting the Style property of a column essentially assigns a default editor to the column. So if you set the Style on the column and then assign an Editor or EditorComponent, then editor will override the Style.
So my guess is that you are assigning the UltraControlContainerEditor to the column and then you are setting the Style, but the editor is still assigned and it therefore takes precedence over the Style. The solution is very simple - in addition to setting the Style, set the Editor/EditorComponent on the column to null.
Thank you very much, Mike! That worked.