Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Go bottom
Message
De
05/11/2007 14:29:55
 
 
À
05/11/2007 14:21:40
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01266689
Message ID:
01266804
Vues:
9
Going to lunch right now ... I will reply in about an hour ... I know what the problem is.

~~Bonnie



>Hello Bonnie, yes tried it but could not get it to work:
>My main form has a button that calls a child windows form. The child child window form does an insert into the dataset.
>
>See the button:
>
>
>private void btnNotes_Click(object sender, EventArgs e)
>  {
>     frmPolicyNotes frmNotes = new frmPolicyNotes(PolID);
>     frmNotes.Text = "Written Policy Notes";
>     frmNotes.ShowDialog();
>
>     // Get update dataset with inserted record
>     //Policy Notes
>     dsPolicyNotes = oPolicyNotesBiz.GetNotes(PolID);
>
>      grdPolicyChangesNotes.ReadOnly = true;
>      grdPolicyChangesNotes.DataSource = dsPolicyNotes;
>      grdPolicyChangesNotes.DataMember = "PolicyNotes";
>
>      //richtexbox just to display the notes ( field on my PolicyNotes table)
>       rtbPolicyChangesNotes.DataBindings.Clear();
>rtbPolicyChangesNotes.DataBindings.Add"Text",dsPolicyNotes, "PolicyNotes.Note");
>
>     // trying to implement bonnie suggestion
>     this.BindingContext[this.grdPolicyChangesNotes.DataSource].Position = dsPolicyNotes.Tables["PolicyNotes"].Rows.Count - 1;
>            count++;
>
>
>
>        }
>
>
>Sergio
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform