Click here to Skip to main content
16,016,814 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProblems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 3:11
Quecumber25618-May-07 3:11 
AnswerRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Marcus J. Smith18-May-07 4:36
professionalMarcus J. Smith18-May-07 4:36 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 5:13
Quecumber25618-May-07 5:13 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Marcus J. Smith18-May-07 5:32
professionalMarcus J. Smith18-May-07 5:32 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 6:22
Quecumber25618-May-07 6:22 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Marcus J. Smith18-May-07 7:20
professionalMarcus J. Smith18-May-07 7:20 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 7:34
Quecumber25618-May-07 7:34 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Marcus J. Smith18-May-07 8:10
professionalMarcus J. Smith18-May-07 8:10 
Quecumber256 wrote:
The field BindingID is the Primary key, it is also a counter. In my first experiment when I added a new record using the BindingNavigator the last record number was 5. When I pressed the new record button it said 7 in the dataset. So whenever I clicked the Previous button. The records where completely disjoined because it thought it had 7 records instead of 6.


This page may help with the navigation.[^]

The dataset will not be nothing if there are no errors accessing the table. As long as it can access the table the column names will be returned but there will be a row count of 0.

You seem to be following the correct procedure for retrieving a new row object and populating the columns then adding it to the table. You might want to try putting hard coded values in there instead of the textboxes just to make sure the row is indeed being added and you can check while debugging by accessing that row ID in the Watch Window.


CleaKO

"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)

GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 8:47
Quecumber25618-May-07 8:47 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Marcus J. Smith18-May-07 9:53
professionalMarcus J. Smith18-May-07 9:53 
GeneralRe: Problems add a new record to a DataSet using the BindingNavigator Control Pin
Quecumber25618-May-07 10:14
Quecumber25618-May-07 10:14 
Questioncreating stles for windows form controls Pin
MartyK200718-May-07 2:26
MartyK200718-May-07 2:26 
AnswerRe: creating stles for windows form controls Pin
Christian Graus18-May-07 3:04
protectorChristian Graus18-May-07 3:04 
GeneralRe: creating stles for windows form controls Pin
MartyK200718-May-07 3:06
MartyK200718-May-07 3:06 
QuestionHow to paste to the default mail client Pin
triley125818-May-07 1:08
triley125818-May-07 1:08 
AnswerRe: How to paste to the default mail client Pin
Xandip18-May-07 1:58
Xandip18-May-07 1:58 
GeneralRe: How to paste to the default mail client Pin
triley125818-May-07 3:43
triley125818-May-07 3:43 
Questionthreads Problem Pin
psiva198418-May-07 1:00
psiva198418-May-07 1:00 
AnswerRe: threads Problem Pin
MartyK200718-May-07 2:34
MartyK200718-May-07 2:34 
GeneralRe: threads Problem Pin
psiva198418-May-07 18:55
psiva198418-May-07 18:55 
QuestionExport data from grid to flat file Pin
jeya krishnan.v18-May-07 0:39
jeya krishnan.v18-May-07 0:39 
AnswerRe: Export data from grid to flat file Pin
Dave Kreskowiak18-May-07 4:11
mveDave Kreskowiak18-May-07 4:11 
GeneralRe: Export data from grid to flat file Pin
jeya krishnan.v18-May-07 18:47
jeya krishnan.v18-May-07 18:47 
QuestionSyntax Error while creating handler Pin
balakpn18-May-07 0:20
balakpn18-May-07 0:20 
AnswerRe: Syntax Error while creating handler Pin
Sonia Gupta18-May-07 0:22
Sonia Gupta18-May-07 0:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.