| Home | Previous Lesson: Resetting Update Status of All Rows Next Lesson: DataWindow Update Properties |
Does PowerBuilder takes to the last row when the user press up arrow key while the focus is on the first row? No, it doesn't. If you need that functionality, then you need to write the code for it.
Declare a user-defined event 'Ue_TabUpOut' and map it to pbm_dwnTabUpOut event id and write the following code.
// Object: dw_product
// Event: Ue_TabUpOut
IF this.GetRow() = 1 THEN
this.SetRow( this.RowCount())
this.ScrollToRow( this.RowCount())
END IF
Note that, this code doesn't work if the focus is in a column that has DDDW edit style and user press up arrow key. This code also works perfectly when you remove the IF condition from the code.
| Home | Previous Lesson: Resetting Update Status of All Rows Next Lesson: DataWindow Update Properties |