PC Review


Reply
Thread Tools Rate Thread

BindingContext Position problem

 
 
Aaron Smith
Guest
Posts: n/a
 
      17th Nov 2004
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

--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
 
Reply With Quote
 
 
 
 
Aaron Smith
Guest
Posts: n/a
 
      17th Nov 2004
Nevermind. Found it. :-/

Aaron Smith wrote:
> 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
>



--
---
Aaron Smith
Remove -1- to E-Mail me. Spam Sucks.
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      18th Nov 2004
Problem found by Arron himself, just to prevent opening by others than
Aaron, thinking it is an addition.

Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
controling bindingcontext position using a combobox dbuchanan Microsoft VB .NET 0 27th Oct 2005 04:23 AM
newbie - ComboBox not always displaying the correct text after BindingContext position change. Eric Microsoft Dot NET Framework Forms 1 27th Apr 2005 09:41 PM
BindingContext problem (Maybe) doomx Microsoft VB .NET 0 15th Dec 2004 06:51 PM
BindingContext[...].Position not working michael_hk Microsoft ADO .NET 1 9th Feb 2004 03:26 PM
Serious Bug in BindingContext Position? Mark Olbert Microsoft ADO .NET 4 6th Sep 2003 09:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:56 AM.