Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Go bottom
Message
De
05/11/2007 14:21:40
Sergio Ortiz
Tek Services Group, Llc
Hollywood, Floride, États-Unis
 
 
À
05/11/2007 12:55:10
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:
01266802
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform