Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying two fields in the same grid control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203589
Message ID:
00203827
Views:
14
Have you looked at the "SelectOnEntry" property???

>Sounds like you have a good solution. Now, if I could just resolve the problems with selecting the text in a textbox automatically (format = K). It just doesn't work and the normal workarounds just don't work right in there.
>
>
>
>>I actually have this process working quite well and have 2 classes that control all the overhead of keypress trapping and scrolling the grid. It evolved from different requirements for different grids until I really understood what was happening. Now I just rely on these classes to handle it all.
>>
>>>Don,
>>>
>>>Yep. Been there and fought that too! <g> There are many other problems with approach as well and I probably wouldn't start with this same approach again. I've run into too many problems with it but, unfortunately, the users of that system have become too found of it and won't let me change it.
>>>
>>>Thanks for the clarification Don.
>>>
>>>- A Hilton
>>>
>>>
>>>>I, like Andrew have been required to do the same thing in the past. However, one real big PITA about using a container class in a grid is that you loose the capability of using the cursor keys, PgUp/PgDn to scroll the grid. It can be done but you have to program the keypress events of the given textbox controls in the container to issue Thisform.MyGrid.DoScroll(). This is just for a heads-up in case you think the system is broke trying this approach.
>>>>
>>>>
>>>>>I'm not sure this is what you're looking for but I've done this before...
>>>>>I've had the need to display many fields per record on the screen at one time (no left/right scrolling) so what I did was inserted a container object into the column (actually, it was a container class that had textboxes in the class) and made the row very big so the container class had about 3 rows of textboxes in it. This let me show many fields in one row at one time.
>>>>>
>>>>>
>>>>>If this isn't what you wanted, I'm sorry.
>>>>>
>>>>>
>>>>>- A Hilton
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>We have a problem with speed displaying data in a normal grid. The speed problem is caused by our need to display values from two fields in the same column.
>>>>>>
>>>>>>Does anyone know of a way of displaying two values (for example Firstname and Lastname) in the same control???
>>>>>>
>>>>>>Help with this, I guess, common wish is greatly appreciated...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform