Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Binding Problem
Message
De
31/03/2003 12:44:22
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
 
À
30/03/2003 21:37:05
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00771847
Message ID:
00772074
Vues:
8
Keith,

Below is the code I have. Is there anything wrong with it?
  Dim Row As DataRow = DsJobTracker.Tables("contacts").NewRow()

        'row = DsJobTracker.Tables("contacts").NewRow()
        Me.DsJobTracker.Tables("contacts").Rows.Add(Row)
        BindingContext(Me.DsJobTracker, "contacts").Position = DsJobTracker.Tables("contacts").Rows.Count - 1
        Me.SetEditNewMode(True, False)
        'ClearControls()
        Me.txtCompany.Select()
        Me.SetArrowButtons()
>Jim,
>
>Instead of clearing the textboxes, add a new row to the dataset.
>
>
>[Visual Basic]
>Dim workRow As DataRow = myDataset.Tables("mytable").NewRow()
>[C#]
>DataRow workRow = myDataset.Tables("mytable").NewRow();
>
>
>
>>Hello,
>>
>> I have a windows form with a bunch of textboxes that bind to a dataset. I also have a new button that clears the textboxes. When I enter text in my first textbox and tab off of it, the textboxes are populated with the previous record's information.
>>
>>What's wrong?
Thanks

Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform