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