Grid Control: Button click functionalities

Started by Prajin P K, December 12, 2019, 04:42:27 AM

Previous topic - Next topic

Prajin P K

Hi Team,
       We've added buttons on each row to perform delete, save, etc for each record on grid control. please help us provide solution to do those operations in class program(.PVC) while clicking on particular button.
Prajin P K
Software Engineer,
World Source Infotech,
Bangalore, India.

Mike King

One method  would be to add a Cell Logic to the grid in for the column which contains the button -- something like _obj'GridButtonClick(id.row) -- which should invoke the method and pass it the row.

Another is to test the values in id.row and id.column in the Grid on change method and based on the Column invoke whatever logic you want.  Something like:

  Function ChangeGrid_1()
  if id.column = 1 return _Obj'GridButtonClick(id.row) ! Column 1 is the button
  ...
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

Prajin P K

Prajin P K
Software Engineer,
World Source Infotech,
Bangalore, India.