How the mesh part implements the automatic wrapping of column contents

Source: Internet
Author: User

In the actual project development, some of the field information is too large, the column width is not enough to display, and you need to complete the display of information, and do not want too many widen columns, the impact of the layout, how to do good?

Measuring the rapid development platform provides you with a solution. such as the effect:


650) this.width=650; "id=" aimg_471 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211457gfgzfi8jxjk99o1e.png.thumb.jpg "width=" "height=" 204 "alt=" 211457gfgzfi8jxjk99o1e.png.thumb.jpg "/>

Setup steps:

1. Find the form to open the designer and select the grid part;


650) this.width=650; "id=" aimg_472 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211459u7tfftx77t8r8ymk.png.thumb.jpg "width=" 151 "height=" alt= "211459u7tfftx77t8r8ymk.png.thumb.jpg"/>

Cancel the property box's "appearance" width self-match , this action must have, or the subsequent settings will not be valid.


2. Open Event Management-load events, add code;

650) this.width=650; "id=" aimg_473 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211606naooei0o1kpt0y8e.png.thumb.jpg "width=" 354 "height=" "alt=" 211606naooei0o1kpt0y8e.png.thumb.jpg "/>"


or click "Smart Wizard" to select "Set field wrap" under the grid part


650) this.width=650; "id=" aimg_474 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211632d8fcfvfrbrfrt2oc.png.thumb.jpg "width=" 375 "height=" alt= "211632d8fcfvfrbrfrt2oc.png.thumb.jpg"/>

With the secondary settings, select the field where you want to set the content wrapping:


650) this.width=650; "id=" aimg_475 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211634ehww6lwwm2q23mwm.png.thumb.jpg "width=" 375 "height=" alt= "211634ehww6lwwm2q23mwm.png.thumb.jpg"/>

Add OK to save the settings.

650) this.width=650; "id=" aimg_476 "src=" http://bbs.delit.cn/data/attachment/forum/201511/09/ 211637wkksc04ku8walvec.png.thumb.jpg "width=" "height=" 261 "alt=" 211637wkksc04ku8walvec.png.thumb.jpg "/>


Note: This method can only be used before the RefreshData () method. Otherwise, it is invalid.

Original address: http://bbs.delit.cn/thread-273-1-1.html

Reprint please indicate the source;

Author: metric Technology http://www.delit.cn

How the mesh part implements the automatic wrapping of column contents

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.