List Info

Thread: RE: HOW DO I ACCESS A VALUE ONTO ANOTHER FORM?




RE: HOW DO I ACCESS A VALUE ONTO ANOTHER FORM?
country flaguser name
United States
2007-02-15 23:16:04
There are several ways to do this. I am assuming a Master-Detail kind of a relation. Without taking a look at the table structure and the relation itself, it would be very difficult to give a best fit solution. However, on the premise that the Master table has a PK with a FK link to the detail table, you can take in the value of the PK from the selection made on the Data Grid in frmDataView. Then you can fire a query on the Detail table based on this value to display the relevant data in another form.
 
You could use a Session Variable/URL Rewriting/Cookies to remember the PK value across pages. To get a more detailed answer, I suggest you post your codes!!
Regards,
Anantharaman

Man ;is the maker of his own destiny!




> To: certifydotnetwithcsharp@yahoogroups.com
>; From: sam2005_dleyahoo.co.in
> Date: Thu, 15 Feb 2007 09:49:40 +0000
> Subject: [certifyDotNetWithCSharp] HOW DO I ACCESS A VALUE ONTO ANOTHER FORM?
>
> Hi,
>
> I am using the C# .net 2005.
> I design a form frmDataView onwhich whatever the data
> entered into the table will displayed on the
> DataGridView control dbgDataDispaly.
>
> Now, When user click any record on the DataGridView
> Control It should be open/retrieve all the values into
> another form frmDataModify.
>
> How do I proceed for that?
>
> Please tell me how do I access the value of a form
> onto another form, for the Search Record Purpose?
>
> Regards,
> Samir
>
>
>
> __________________________________________________________
> Yahoo! India Answers: Share what you know. Learn something new> http://in.answers.yahoo.com/
>;
>
> Group website: http://groups.yahoo.com/group/certifyDotNetWithCSharp
> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
> http://groups.yahoo.com/group/certifyDotNetWithCSharp/
>
> <*> Your email settings:
> Individual Email | Traditional
>
> <*> To change settings online go to:
> http://groups.yahoo.com/group/certifyDotNetWithCSharp/join
> (Yahoo! ID required)
>
> <*> To change settings via email:
>; mailto:certifyDotNetWithCSharp-digest@yahoogroups.com
> mailto:certifyDotNetWithCSharp-fullfeatured@yahoogroups.com
>
> <*> To unsubscribe from this group, send an email to:
> certifyDotNetWithCSharp-unsubscribe@yahoogroups.com
&gt;
> <*> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>



Search from any Web page with powerful protection. Get the FREE Windows Live Toolbar Today! Try it now! __._,_.___ __,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )