Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmaticaly addrow to grid& deleterow from grid
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Programmaticaly addrow to grid& deleterow from grid
Divers
Thread ID:
00714292
Message ID:
00714292
Vues:
45
Hi All,
i have a grid on the form i am adding row al last column of the grid programmaticaly like under method,

* first add a new property to the form named Mycolumn and value 1

*Grid BeforeRowColChangeEvent
LPARAMETERS nColIndex
ThisForm.Mycolumn = ncolindex

* Grid AfterRowColChangeEvent
LPARAMETERS nColIndex
If ! EOF() .And. LastKey() = 13 .And. nColIndex < ThisForm.Mycolumn
Skip
If EOF()
Append Blank

* form settings private datasession,pessimistic,buffer mode

now i have 2 question about it

A-how can do this action (adding row) in any column
B-when i pressed UpArrow (at newly added row,current recno) and not changed any fields at the new row should be delete it

how can i do this ?

(Delphi's DBGRID attitudes like my sample)

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform