Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Display usercontrol in ultralistviews maincolumn
posted

Hi,

 I have a usercontrol with 2 labels arranged horizontally next to each other . the rightmost label's autosize property is set to true.

I assign the usercontrol to the ultralistviews maincolumn as below :

 

 

 

 

 

 

 

 

 

 

UserControl colitem = new UserControl();

 

 

 

 

 

 

UltraControlContainerEditor controlContainerEditor = new UltraControlContainerEditor();

 

 

 

controlContainerEditor.RenderingControl = colitem;

 

 

 

controlContainerEditor.RenderingControlPropertyName =

 

"SetValue";

 

 

 

 

 

 

ultralistview.MainColumn.EditorComponent = controlContainerEditor

 

When i do this, the text in the rightmost label is truncated.it dosent autosize according to the text in the ultralabel.  I tried resizing the maincolumn at runtime,but that didnt help either

my ultralistviews viewtype is set to list and for my feature I need this to be set to list.

can somebody help me with this issue.

THanks in advance