Hi all
I am creating a tabular data window. My purpose, is when the user press Enter Key at the last column, a new row should be inserted and the focus should come to the "employee id" column.
My code is given below.
Data window Item Changed event
Choose Case dwo.name
Case 'amount'
If KeyDown(KeyEnter!) Then
TriggerEvent("clicked")
End if
End Choose
Datawindow Clicked Event
currow=dw_1.insertrow(0)
dw_1.ScrollToRow(currow)
dw_1.SetRowFocusIndicator(Hand!)
dw_1.Object.processcode[currow]=process
dw_1.SetColumn("empid")
DW_1.SETFOCUS()
The problem is that the focus is not coming to the "empid" column in the new row. It goes into the "amount" column itself in the new row.
Am I forgetting to do something?
Regards
JAMOHAN