|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Noob Question, please helpI 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. Disregard the question, lack of coffee frustated me. I already got it, not
sure why I got into the if sentence, damn. Show quote "rocha1573" <rocha1***@hotmail.com> wrote in message news:%23NpBXYz7GHA.1012@TK2MSFTNGP05.phx.gbl... >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. > |
|||||||||||||||||||||||