473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

BindingContext Position problem

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.
Nov 21 '05 #1
2 2893
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.
Nov 21 '05 #2
Problem found by Arron himself, just to prevent opening by others than
Aaron, thinking it is an addition.

Cor
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rakesh | last post by:
Using the BindingContext we will be able to find the actual position of the row selected in a DataView (regardless of the sort used). What I want to do is exactly the reverse. That is, I know...
1
by: Sergio Florez M. | last post by:
I have a windows form with a bunch of textboxes, comboboxes and three datagrids. My dataset has 4 tables and the necesary relations. Basically it's a master page with three detail grids. My problem...
1
by: D. Yates | last post by:
Hi, I retrieved the employee table from the Pubs database into a single dataset called, dataSet12. I dropped two textbox controls and a datagrid control onto the same form and bound the...
2
by: John Celmer | last post by:
Can someone please help me with my code. I have a datasetX with two tables, tableA and tableB in the datasetX. The tables have a DataRelation named A_B_Relation. How can I get the...
1
by: Edwin | last post by:
Hi, I created a dataform with the data form wizard which created some textboxes and 1 checkbox. When I add a row (see section "Add Row" for code) the newly added is not accessible. A label...
0
by: nina98765 | last post by:
Hi all I have a data-bound Windows form bound to a strongly-typed dataset. Upon opening the form, I would like to Find a specific record based on a parameter I've passed to the form, and display...
0
by: graham | last post by:
Hi there, Can anyone help me with a definitive solution to the problem I have. I know this is much revisitied ground, and I have read a number of articles.. but I still can;t get this binding to...
6
by: Aaron Smith | last post by:
I have a form, oddly enough the same one with the expression column that is giving me a headache, and on this form I have a dataset that has a couple of tables in it that are related. If I do a...
6
by: MeowCow | last post by:
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.