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