In the ultragrid control, the cell content is displayed with line breaks.

Source: Internet
Author: User

There is a remark content that needs to be displayed on the interface. because there may be many remarks, the cells in a single row are often incomplete, so you want to be able to display multiple rows for viewing.

The following code is required to display line breaks:

Ultrabod1.displaylayout. Bands [0]. Columns ["Remarks"]. cellmultiline = infragistics. Win. defaultableboolean. True;
Ultrabod1.displaylayout. Bands [0]. Columns ["Remarks"]. vertscrollbar = true;
Ultrabod1.displaylayout. Override. defaultrowheight = 45;

In this way, the height of each row is fixed, so some remarks may still not be able to directly display all the content on the interface. You need to scroll down to see the following content. However, this makes the interface look more beautiful and the specifications are unified.

You can place the cursor over the remarks field. If you do not click it, you can see all the content in the remarks in a floating window. In fact, if you do not need to copy or modify the remarks on the interface, but only view the content in the remarks, this small function is still very useful.

Reference: http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx? ArticleID = 1043

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.