Two grid in a form, one grid cannot scroll


#1

i have two grid controls in a form, if i set one of grid is invisible, then the scroll in that grid will not shown(not able to scroll down)

this is the code

Function Button1_onclick()
If Button1.value=“A” Then
Button1.value="B"
Grid1.Visible=False
Grid2.Visible=True
Else
Button1.value="A"
Grid1.Visible=True
Grid2.Visible=False
End If
End Function

Function Form2_onshow()
For i=1 To 10
Grid1.addRows(10)
Grid2.addRows(10)
Grid1.setRowHeight(i,“15px”)
Grid2.setRowHeight(i,“15px”)
Grid1.setValue(i,0,i)
Grid1.setValue(i,1,i - 1)
Grid2.setValue(i,0,i)
Grid2.setValue(i,1,i - 1)
Next
Grid1.refresh()
Grid2.refresh()
Call Button1_onclick()
End Function


#2

One workaround might be to use two forms.