Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Go bottom
Message
From
05/11/2007 14:29:55
 
 
To
05/11/2007 14:21:40
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:
01266804
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform