Hello,
I have an ultragrid's columns with the style set to ColumnStyle.FormattedTextEditor.
I'd like to be able to format the text much like an HTML table, with column/row borders, row spans, and column spans.
I did not see a table attribute in the documentation but would like to know if there is an alternative way of pulling this off?
Thanks in advance!
Hello Acozzi,
Formatting of text and hyperlinks in UltraFormattedTextEditor uses same tags as the ones in HTML. However it is not HTML renderer and only limited subset of HTML functionality is supported. Among these are not tables. Therefore you cannot format the text in the editor as table. Additional information about this matter you may find in our online documentation at this article "Formatting Text and Hyperlinks".
If you need to show your information in table layout I can suggest you to use UltraGrid.
Please let me know if any additional questions on this matter arise.
Thank You.
If the span tag supported Border-style in the Style attribute I would have exactly what I need.
Any chance the RichTextEditor feature in the wingrid would support what I need?
As an alternative I created a user control which I am applying to the grid via the Editor property. I am not using a wingrid for the user control, just ultra labels as they provide the formatting I need.
The grid sits on a ZoomPanel and as I zoom in the user control text begins to blur being as I am zooming in on an image. Any suggestions for making the editor look crisp as I zoom in?
Hi Acozzi,
The fix for TFS item #243643 is now ready. It will be included in our next service release. I also created a private case #CAS-187685-P3D8C9 for you in our system. You can find this case by log in into your account in our web page and go to My Account – Support Activity section.
I will send you a patch for this issue via the above mentioned case.
Please not that we were able to fix the blurriness of the RenderingControl. However, the ZoomPanel cannot scale the contained control directly. This could be handled using the ZoomFactorChanged event for example like this:
private void ultraZoomPanel1_ZoomFactorChanged(object sender, EventArgs e){ var controlContainerEditor = (UltraControlContainerEditor)this.ultraGrid1.DisplayLayout.Bands[0].Columns[orderColumnKey].EditorComponent; controlContainerEditor.EditingControl.Font = new Font(this.Font.FontFamily, this.Font.Size * this.ultraZoomPanel1.ZoomProperties.ZoomFactor); controlContainerEditor.RenderingControl.Font = new Font(this.Font.FontFamily, this.Font.Size * this.ultraZoomPanel1.ZoomProperties.ZoomFactor); this.ultraGrid1.Invalidate(true);}
Please let me know if any additional questions arise.