Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmaticaly addrow to grid& deleterow from grid
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Programmaticaly addrow to grid& deleterow from grid
Miscellaneous
Thread ID:
00714292
Message ID:
00714292
Views:
43
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
Next
Reply
Map
View

Click here to load this message in the networking platform