Jump to content

Add a new record in a grid


rvenky20001

Recommended Posts

How do I add a new record to a grid. If there are no records in the table then on enter of the grid it should add a new record. if there are records on the last record if I push the downarrow it should add a new record.

 

tried this code in the onenter event of the grid but it did not work

 

if TUniDBGrid(Sender).datasource.dataset.active then

begin

if (TUniDBGrid(Sender).datasource.dataset.RecordCount = 0) then

TUniDBGrid(Sender).datasource.dataset.append;

end;

 

Secondly does estjs 4.x support editing of the cell without double clicking on it ? If so how do I achieve it.

 

Venkatesh

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...