MSHFlexgrid displayed value
From: Bob (anonymous_at_discussions.microsoft.com.invalid)
Date: 07/16/04
- Next message: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Previous message: Brian: "Re: Subclassing Help - Ken???"
- Next in thread: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Reply: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Jul 2004 12:25:13 -0700
Hello all:
I have an MSHFLEXGRID control in VB 6.0, and I am trying to implement a
best-fit format for each cell. Therefore, depending on the cell content, I
have a routine, which returns the format string for me. However, I have a
problem. The grid holds the contents of my values, meaning, I do not have
an extra array holding the values. I want to be able, to read the value of
the cell using the TEXT or TEXTMATRIX properties, and then using my routine,
get the format string, and display the value to the user. Please note that
by doing displaying the value, I do not wish to use the TEXT or TEXTMATRIX
because I may loose accuracy. For example, the inputted value may be
1234.123456789, and the format string may be "#,##0.000". So I want the
grid to display 1,234.123, but if I access the grid value by the text or
textmatrix to return the original number 1234.123456789.
Does anyone know either through VB, or API, how to set and read the display
value of the grid without affecting its stored internal value?
I appreciate your help very much.
Bob
PS. I have looked at the grid control from componentone, and that control
has the same problem. It does not allow me to set the format for each cell,
it only lets me set it for the entire column.
- Next message: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Previous message: Brian: "Re: Subclassing Help - Ken???"
- Next in thread: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Reply: Don Hanfland: "Re: MSHFlexgrid displayed value"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|