R
rocha1573
I want to create a form with basically 2 boxes and 4 navigation buttons,
First, Last, Next and Previous. Now, I am trying to do it like this:
For the Previous Button for example, on click event:
If bindingcontext(dataset,"tablename").position > 0 then
bindingcontext(dataset,"tablename").position = _
(bindingcontext(dataset,"tablename").position - 1)
For the next button I changed to +1, for the last button to
..position.maxvalue and the fist button .position.minvalue.
When I open the form, textbox remains with the first position of the table,
and the buttons do not work. I created a datagrid just to see that the data
was loading into the form ok, which it is. I also created a textbox to
query the table and show results on datagrid and works great. Not sure what
am I doing wrong in the bindingcontext code, please any help is appreciated.
First, Last, Next and Previous. Now, I am trying to do it like this:
For the Previous Button for example, on click event:
If bindingcontext(dataset,"tablename").position > 0 then
bindingcontext(dataset,"tablename").position = _
(bindingcontext(dataset,"tablename").position - 1)
For the next button I changed to +1, for the last button to
..position.maxvalue and the fist button .position.minvalue.
When I open the form, textbox remains with the first position of the table,
and the buttons do not work. I created a datagrid just to see that the data
was loading into the form ok, which it is. I also created a textbox to
query the table and show results on datagrid and works great. Not sure what
am I doing wrong in the bindingcontext code, please any help is appreciated.