Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

HOW CAN I GET STATUS LIKE EDITING, INSERTING OR DELETING FROM TDBGRID

HOW CAN I GET STATUS LIKE EDITING, INSERTING OR DELETING FROM TDBGRID
0
rafaelrgl
Asked:
rafaelrgl
2 Solutions
 
RickJCommented:
Use the state property of the dataset i.e

if dbgrid.DataSource.DataSet.State in [dsEdit, dsInsert] then
  ShowMessage('Hello') ;

if dbgrid.DataSource.DataSet.State = dsEdit then
  ShowMessage('Hello') ;
0
 
rafaelrglAuthor Commented:
what event on DBGRID I have to put this code.
0
 
JDSkinnerCommented:
Try placing the code in the DataSource.OnDataChange event.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now