Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Grids
Message
 
 
À
02/08/2017 11:34:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01653004
Message ID:
01653008
Vues:
61
>Howdy Experts,
>
>I have a grid that I would like to do the following:
>
>a. Allow users to scroll through but NOT make updates to the data in the grids but rather have them to double click and bring up a new form for data editing for that particular record
>
Set ReadOnly property to true for the grid (you may also set them for every column)

>b. As the users scroll from line to line, change the color of the fore color and background color of the selected cells / line. Right now the default background is gray and fore color is read (to give it a disabled look). But as they scroll i want to be able to show which line they are on.

See HighlightStyle property of the grid

>
>c. When adding new records, I am having them to click on a button on the form with the grid, opens up a new form and captures the data. Then they press save adn the data entry form goes away and goes back to the orginail calling form. That part I have working okay. How do I stay on that record that they added and show it as the current line (background and foreground issue above ..section b. )
>
>Any ideas...been a long time since I worked on grids

Save the record number of that new row, goto the recno() and also you may need to call grid.SetFocus() after moving to that record number.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform