Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > How Do I Pass Bindingsource to Another form.

Reply
Thread Tools

How Do I Pass Bindingsource to Another form.

 
 
Rob Dob
Guest
Posts: n/a
 
      05-05-2006
Hi,

I have two forms. the first form has a datagridview who's datasource is a
bindingsource. when you double click on a datagridview row it then opens my
second form, which has some databound controls, text boxes that are bound to
another bindingsource. Both bindingsources are bound to the same dataset,
and contain the same information. Within my second forms Load method I fill
my dataset that is bound to my bindingsource with the content of the current
record selected from my first form. but the problem is that when I save the
changes made within my second form and close it that these changes are not
reflected within my first forms datagridviews contents unless I Fill the
dataset again.

I'm assuming that what I need to do is use the bindingsource that is
contained within my first form in my second form, that way any changes will
be immediately reflected back into my main form.. If this is the case, how
do I go about doing this.?

Any suggestions would be greatly appreciated.

Thanks


 
Reply With Quote
 
 
 
 
tyquaun@gmail.com
Guest
Posts: n/a
 
      05-05-2006
Use the server.transfer method. It will provide the contents of the
intial form to the redirected form.

 
Reply With Quote
 
 
 
 
Rob Dob
Guest
Posts: n/a
 
      05-05-2006
Hi,

This is a WinForm Windows application not a Webform.., Do you know how I
would make use of the bindingsource within the first form in my second form?

thanks,


<> wrote in message
news: ups.com...
> Use the server.transfer method. It will provide the contents of the
> intial form to the redirected form.
>



 
Reply With Quote
 
David Thielen
Guest
Posts: n/a
 
      05-06-2006
Hi;

You're in the wroooooooong place for WinForm questions. Best way to handle
it for plain old windows forms is to pass the object in the constructor of
the child form and use it in there.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Rob Dob" wrote:

> Hi,
>
> This is a WinForm Windows application not a Webform.., Do you know how I
> would make use of the bindingsource within the first form in my second form?
>
> thanks,
>
>
> <> wrote in message
> news: ups.com...
> > Use the server.transfer method. It will provide the contents of the
> > intial form to the redirected form.
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How Do I Pass Bindingsource to Another Winform. Rob Dob ASP .Net Datagrid Control 4 05-17-2006 03:44 PM
How Do I Pass Bindingsource to Another form. Rob Dob ASP .Net Web Controls 3 05-06-2006 01:40 AM
BindingSource, Archiving Old record before saving new changes Rob Dob ASP .Net Datagrid Control 1 03-16-2006 08:44 AM
Pass by reference / pass by value Jerry Java 20 09-09-2005 06:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57