Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editable multiselect grid needed
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00682982
Message ID:
00683107
Views:
43
Hi Leland,

I agree with your idea of using special class for textbox in a grid. I was thinking about saving value in GotFocus and comparing with the value in valid (or lostfocus) to update the field, which would be responsible for row color change.

This part is quite easy, I've done it in few my applications. I guess, my colleague just didn't use this technique before and besides the complicated code in BeforeRowColChange is already written and does it too, so she is reluctant to switch.

Your other idea about using checkbox for marking records is not that appealing. I prefer to use true multi-select grid (which works similar way, as multiselect listbox).

I used multiselect grid by Cetin Basoz successfully. However, his grid is not for editing, it's read-only. I'm not sure, how easy would be to convert it to editable multi-select grid...

The cursor for this grid is changing structure each time, the user presses Edit button, so your last paragraph is not applied in this situation.

Thanks again for your response. You confirmed my thoughts about part 1.

>Hi Hadya,
>
>I would use the interactivechange event of the grid column's currentcontrol ,like textbox or combo, to change the foreground color. Anytime the grid's currentcontrol is edited the interactivechange event fires.
>
>I would use a checkbox to perfrom the multi-select. If checkbox is checked,(e.g. .T.), then it is selected.
>
>I would complete the grid using the Visual FoxPro IDE. After I had the form designed and working visually, I would examine it piece by piece to write the code to programmically recreate it. This could take awhile and would be kind of tedious. An alternative would be to make sure the grid control source was never closed, making it unnecessary to recreate the gird and form if that also is to be programmically created per the user request.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform