Subject |
Re: Conditional edit of a record in a grid |
From |
Buză Vasile <hsctm@rdslink.ro> |
Date |
Tue, 12 Oct 2021 16:35:56 +0300 |
Newsgroups |
dbase.getting-started |
"Buză Vasile" wrote in message news:9O5iNt2vXHA.1636@ip-AC1E04A7...
>"Milind Nighojkar" wrote in message news:UkVybhsvXHA.1640@ip-AC1E04A7...
>
>Scenerio :
>form has a grid using a single table. Want to limit editing to recno 1.
>How I can I do that?
>Any suggestions?
>Can somebody share a sample code?
>Regards
>Milind Nighojkar
Hi Milind,
You can use:
Query.Rowset.OnNavigate = { ; this.CanEdit := iif( this.atFirst(), null, {||
false} ) }
or simpler
Query.Rowset.canEdit = {|| this.atFirst() }
Example in attachment.
Vasile
|
|