rvenky20001 Posted October 16, 2012 Posted October 16, 2012 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.