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
80
How to truncate the row height after adding ultraoptionset using editorcontrol property?
posted

 Hi,

This is what my code snippet,i have added ultraoptionset to grid row and made it to display horizontally so row height is getting increased, how can i truncate the row height?

UltraOptionSet ultraOptionset1 = new UltraOptionSet();

Controls.Add(ultraOptionset1);

ultraOptionset1.Items.Add(
"Yes");

ultraOptionset1.Items.Add("No");

ultraOptionset1.Items.Add("N/A");

ultraOptionset1.Height = 36;

ultraOptionset1.ItemOrigin =
new Point(0, ultraOptionset1.Height / 2);

e.Row.Cells["TextAnswer"].EditorControl = ultraOptionset1;

 Thanks in advance,

pavana

  • 37774
    posted

    Pavana,

    Your image doesn't seem to be attached correctly so I can't see it, but you could certainly try setting the Height of the row directly.  If you only want to change the height of individual rows instead of affecting all rows, you should set the RowSizing property, such as in InitializeLayout:

    e.Layout.Override.RowSizing = Infragistics.Win.UltraWinGrid.RowSizing.Free;

    -Matt