Hi! I have a problem :)
I have a WinGrid with 3 columns and 3 rows. The last row, has to show a informative text, and the UltraLabel that contains the text is ColSpan = 3.
The text is too long, and it doesn't fit only in 1 line. Then, I want the UltraLabel automatically wrap the text and shows it in two or three lines.
I set the row of the WinGrid to AutoSize and the UltraLabel has Dock=Fill and WordWrap=true.
Any idea?
Thanks in advance.
Hi,
I'm confused. What's this about an UltraLabel? There's no way to embed an UltraLabel in a grid. Are you saing there's a label outside the grid? I'm not sure what you are trying to accomplish or what you are asking.
I'll try to explain it better again :P
I have a grid, with 3 columns and 3 rows. In cell (0,2) - Column 0, Row 2 - I put a control. This control is a UltraLabel.
This label contains a text, larger than the grid's width. Think in an HTML table, with text in one of his cells. When the text is larger than the column that contains this text, the text truncates automatically and is shown in many rows, as necessary.
This is my problem. The text don't truncate automatically and the text that exceeds the table width doesn't appear in the screen.
I hope my explanation works now :)
I'm afraid I still don't understand.
There's no functionality in the grid to place an UltraLabel into a grid cell. So how are you doing this? Are you just positioning the label over the cell? Why would you put an UltraLabel in a grid cell, anyway? What functionality are you getting from a label that you can't already do with a read-only grid cell?
Really sorry, I get confused about the WinGrid. I'm using a TableLayoutPanel instead!!!!
My problem was that the UltraLabel was AutoSize = true. I've changed it to AutoSize = false and set Dock = Fill and it works perfectly.
Sorry for the inconvenience.
And thanks although!!