Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmaticaly addrow to grid and deleterow from grid
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Programmaticaly addrow to grid and deleterow from grid
Divers
Thread ID:
00714250
Message ID:
00714250
Vues:
48
Hi All,
i have a grid and i am using for programmatialy addrow to the grid this method

i have put new proprty to the form named Mycolumn with value 1

BeforeRowColChangeEvent Code

LPARAMETERS nColIndex
ThisForm.Mycolumn = ncolindex

AfterRowColChangeEvent Code

If !EOF() .And. LastKey() = 13 .And. nColIndex < ThisForm.Mycolumn
Skip
If EOF()
Append Blank
EndIf
EndIf


this code adding new row to the grid (blank record too) when i pressed key at last column.

at this point i have two question

a-how can i do this action at last row in any column ?
b-how can i cancel this action via press UpArrow if didn't change any field at this row (same way this recno) and the record didn't buffered ( form is PrivateDataSession,Pessimistic,buffer mode 5)

(this action there is a DBGRID in Delphi)

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform