Quantcast
Viewing all articles
Browse latest Browse all 21393

Flexgrid: How to autosize the height of MsFlexgrid

Hello,

I'm using a FlexGrid and I set the MSFlexGrid1.ColWidth(0) to
1200 twips using the following code :
Code:

Form1.MSFlexGrid1.ColWidth(0) = 1200
Form1.MSFlexGrid1.ColWidth(1) = 2900
Form1.MSFlexGrid1.FixedCols = 0'remove the gray "vertical fixed Col" on left side

Result: the given string ...

"a brown fox jum ps over the lazy bag" ...is cropped (see Sample 1).

-Now I want to autosize the col height, if the given string
exceeds the cellwidth of 1st col, or the given string
exceeds the cellwidth of 2nd col.

The Result should be as shown in Sample 2).

-How can I do this?
Image may be NSFW.
Clik here to view.
Name:  MsFlexgrid_multiline.jpg
Views: 8
Size:  31.0 KB
Attached Images
Image may be NSFW.
Clik here to view.
 

Viewing all articles
Browse latest Browse all 21393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>