Short answer:
How can i enable first row when i press TOP
|
Jabaco Source
|
1
2
3
4
5
|
Public Sub Command1_Click()
Dim v As javax#swing#JViewport = JBGrid1.getViewPort
v.setViewPosition(New Point(0,0))
JBGrid1.setViewport(v)
End Sub
|
and how can i move to last when i press BOTTOM?
|
Jabaco Source
|
1
2
3
4
5
|
Public Sub Command2_Click()
Dim v As javax#swing#JViewport = JBGrid1.getViewPort
v.setViewPosition(New Point(0,99999))
JBGrid1.setViewport(v)
End Sub
|
Last one is only a dirty hack. I have had known how to find out the maximum. But currently, I don't remember. So I used a big number (9999) instead.