Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21297

[RESOLVED] Flexgrid: How to autosize the height of MsFlexgrid

$
0
0
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?
Name:  MsFlexgrid_multiline.jpg
Views: 60
Size:  31.0 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 21297

Trending Articles



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