BindingContext Position problem

  • Thread starter Thread starter Aaron Smith
  • Start date Start date
A

Aaron Smith

I have a simple datagrid on a form. I used the wizard to create the
form. I have navigation buttons that I made myself.. This is the next
button:
Me.BindingContext(objSeasonsDS, "Seasons").Position =
(Me.BindingContext(objSeasonsDS, "Seasons").Position + 1)


The position is always 0. If I hit the next button, it becomes 1, then
when I hit it again, it's back to 0 and gets set to 1 again. The
(objSeasonsDS.Tables("Seasons").Rows.Count is set to the total number of
records. (currently 4)

The grid has only one column, as there is only one field in the table.
The primary Key is set on that field... All the other forms I made with
the wizard works as they are all set up primarily the same way..

Thanks,
Aaron
 
Nevermind. Found it. :-/

Aaron said:
I have a simple datagrid on a form. I used the wizard to create the
form. I have navigation buttons that I made myself.. This is the next
button:
Me.BindingContext(objSeasonsDS, "Seasons").Position =
(Me.BindingContext(objSeasonsDS, "Seasons").Position + 1)


The position is always 0. If I hit the next button, it becomes 1, then
when I hit it again, it's back to 0 and gets set to 1 again. The
(objSeasonsDS.Tables("Seasons").Rows.Count is set to the total number of
records. (currently 4)

The grid has only one column, as there is only one field in the table.
The primary Key is set on that field... All the other forms I made with
the wizard works as they are all set up primarily the same way..

Thanks,
Aaron
 
Problem found by Arron himself, just to prevent opening by others than
Aaron, thinking it is an addition.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top