'Tab' N 'Insert'

Hello Friends,
I want to insert a new row in my grid datawindow, whenever I press 'Tab'
from the last column of the last row of my datawindow.

Thanks
Rahul Patodi


0
Rahul
12/2/1999 7:17:38 PM
sybase.powerbuilder.datawindow 28057 articles. 4 followers. Follow

1 Replies
602 Views

Similar Articles

[PageSpeed] 48

In the user event mapped to the pbm_dwnkey event id put this:

string ls_text
long ll_row

IF key = KeyTab! THEN
 IF THIS.GetColumn() = dw_1.Object.DataWindow.Column.Count THEN
  IF dw_1.GetRow() = dw_1.RowCount() THEN
   ll_row = dw_1.InsertRow(0)
   dw_1.ScrollToRow(ll_row)
   dw_1.SetRow(ll_row)
  END IF
 END IF
END IF

Rahul Patodi wrote:

> Hello Friends,
> I want to insert a new row in my grid datawindow, whenever I press 'Tab'
> from the last column of the last row of my datawindow.
>
> Thanks
> Rahul Patodi

0
Ken
12/3/1999 4:23:45 PM
Reply: