Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Go Back  Xtreme Visual Basic Talk > > > Form Load Stops After Data Adapter Funtions


Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2014, 02:30 PM
sirmilt sirmilt is offline
Contributor
 
Join Date: Jan 2003
Location: Florida
Posts: 451
Default Form Load Stops After Data Adapter Funtions


I am completely baffled by this.

My program has three primary Windows forms and one selection form. Each form has a DataGrid and a number of controls filled by a DataAdapter.

Creation of the form worked perfectly and accurately, with one problem in the form load event. The system generated code line (as shown below)works perfectly(almost)

Me.TblBooksTableAdapter.Fill(Me.MyCollectionsDataSet.tblBooks)

The details fill in the DataGridView and the individual controls are filled for the first record in the table. Unfortunately any code following the line shown above are skipped and the form opens, fully populated with the first record. Unfortunately there are a number of lines of code following the TableAdapter that are skipped, these lines call other functions that can only be performed if the data for the record is in place.

I have tried everything I can think of, including re-doing the guilty form, to find the cause but haven't been able to do so. There are two other windows forms being populated the same general way and they seem to work OK.

Has anyone ant suggestions?
Reply With Quote
  #2  
Old 06-22-2014, 08:45 AM
sirmilt sirmilt is offline
Contributor
 
Join Date: Jan 2003
Location: Florida
Posts: 451
Default

Problem Solved...the answer was related to a date field.

I had a number of examples in my test database. I had treated a date as a string, with a format of "MMM-d-yyyy" which is my favorite date format.

Several other issues caused me to decide a standard date format(m/d/yyyy) and I reset the fields in the SQL Server table. There were 2 records with the string already present. When I deleted the two records...everything worked perfectly..

Milt
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
 
Form Load Stops After Data Adapter  Funtions
Form Load Stops After Data Adapter  Funtions
 
-->