Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

DATA WINDOW SETCOLUMN NOT WORKING

$
0
0

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


Viewing all articles
Browse latest Browse all 2881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>