General information
Category:
Forms & Form designer
>>I was working on a custom form for displaying results of an automatic process running from the .activate event of the form. It works fine, there's just one glitch that I don't mind this time, but would certainly need solved for some other cases if it reappears.
>>
>>The numeric columns in the grid were assigned an InputMask of "999,999,999.99"; the numbers still display without separators. I've used a currency field, and the grid (quite unnecessarily) displayed all four decimals. Tried with n(16,2), it displayed the decimals ok (of course), but sitll didn't show the separators.
>>
>>The InputMask is assigned in the form's init, like this:
>>
>>this.nGrid1.column5.text1.InputMask=g_pc
>>
>>G_pc is defined elsewhere; in the debugger I see it properly assigned to the InputMask property of the textbox in the column. Still, the numbers show without it. Any clues?
>
>Is your column's sparse property set to .F.? Otherwise default textbox displays in inactive cells.
I have found that often (more often than not), you must set the focus to the column in order for the input mask to appear. I've even written a method called
SetFocusAllColumns() within my grid class which does that after the grid is built (self building grid).
Steve
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only