Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go bottom
Message
From
05/11/2007 14:21:40
 
 
To
05/11/2007 12:55:10
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Environment versions
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01266689
Message ID:
01266802
Views:
11
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform