Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSHFlexGrid - format columns(bands)

Status
Not open for further replies.

Dewey

Programmer
Jan 25, 2000
21
US
Using the Adodc control I have an ACCESS 2000 table, that I have connected to and view in VB6. It is 4500 rows long with 14 columns wide. In MSHFlex Grid they call the columns bands.<br>
My problem is that one of the columns(or bands)(column 12 or band 12 named &quot;ScaleAmt&quot;) is .40, but when it prints to screen it is .4, so I have been trying to figure out a format command for this one column. I have tried many ways and even one book says it isn't possible. I can't believe this.<br>
<br>
Private Sub Form_Load()<br>
Grid1.Columns(&quot;ScaleAmt&quot;).NumberFormat = &quot;00.00&quot;<br>
End Sub<br>
<br>
The above works in the DataGrid Control, but I can not find a counterpart int the MSHFlexGrid Control. I hate to ask for help on something simple, but I have 3-4 hours in on this, with no luck <p>Dewey Davis<br><a href=mailto:ddavis@dfn.com>ddavis@dfn.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top