Site Search:
Sign in | Join | Help
4Penny.net

Janus System

All things for all Janus products

Canceling a GridEx addingRecord event

The best way to cancel an addingrecord event in the gridex control that I've found is to call the cancelCurrentEdit() function.  I was initially setting the e.cancel property to true, but that had the side effect of not letting me change the focus from that row in the grid :)

 If isGoodRow = False Then
            grdPeople.CancelCurrentEdit()
Else
            insert the new row into the database, etc.
End If

Comments

No Comments

Leave a Comment

(required)  
(optional)
(required)  
Add

About Steve Gray

Steve is a seasoned (translate: old) developer in VB and ASP.NET. He spends most of his time in Dynamics GP, writing custom mods for consulting firms. Crystal reports, eConnect, VS Tools for Dynamics... anything that comes along.