sorry for not replying to your mail. I was at heavy work load. I have read your question . solution as follows.
First you dont need to have two buttons on each row. Just put two buttons on window. In your slang its form.
Then name it as cb_update and cb_delete
Then i think you have retrieved the data from the database to powerbuilder datawindow. Whats your datawindow name ? , here i assuming your datawindow name as dw_emp.
Go to instance variable place and declare an instance long variable <>
Long ll_rownumber
Double click that datawindow . in that select the clicked event .
in that there are predefined variables available we can use that. just follow my code. you will understand later
datawindow clicked event
ll_rownumber=row
this.selectrow(0,false)
this.selectrow(row,true)
Now write the code on cb_delete button
dw_emp.DeleteRow(ll_rownumber)
Next write down the code on cb_update button
dw_emp.Update()
dw_emp.reset()
dw_emp.retrieve()
For update your datawindow's update properties must be set. to do this. open that window. right click on the datawindow in that select Modify Datawindow. now look for menu Rows . In that select submenu update properties.
Select Allow update check box. Then select all columns in updatable columns . Then select the unique key column on the right side. at last on top select the table name. Then ok.
now run the code. To delete you should click on the particular row. and then select delete button. and then select update button.
regards
Raj