if (Session["addDS"]==null)
                    return;


               sdsBrands.ds.Tables[0].Clear();
               StateDS sds=(StateDS) Session["addDS"];
               for(int i=0;i<sds.ds.Tables[0].Rows.Count;i++)
               {
                    DataRow drNew = sdsBrands.ds.Tables[0].NewRow();
                    DataRow drCurr=sds.ds.Tables[0].Rows[i];
                    //drNew[0] = (int) ViewState[""];
                    drNew[1] = (string)drCurr[0].ToString();
                                                   //BrandID
                    drNew[2] = (string)drCurr[1].ToString();
                                                   //BrandCode with Extra
Characters
                    drNew[3] = (string)drCurr[2].ToString();
                                                   //Description
                    drNew[4] = (string)drCurr[3].ToString();
                                                   //DB_Name
                    sdsRows.ds.Tables[0].Rows.Add(drNew);
               }

               // Binding a DataGrid here!
               BindBrandsGrid();
               //Removes addDS from Session Collection, since the record is
transferred to
               //sdsUserModules and also to Session Session["DS2"]
               //Session["addDS"] fetched the records selected from Brands
Popup
               Session.Remove("addDS");
               btnInsertBrands.Enabled = true;
               lblMessage.Text = "";




                                                                                       
                                 
                    "Mischa Kroon"                                                     
                                 
                    <[EMAIL PROTECTED]       To:     <[EMAIL PROTECTED]>               
            
                    erland.nl>                cc:                                      
                                 
                                              Subject:     RE: [AspNetAnyQuestionIsOk] 
This row already belongs to      
                    05/10/2004 03:48 PM        another table.                          
                                 
                    Please respond to                                                  
                                 
                    AspNetAnyQuestionIs                                                
                                 
                    Ok                                                                 
                                 
                                                                                       
                                 
                                                                                       
                                 




What code are you using ?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: maandag 10 mei 2004 9:27
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] This row already belongs to another table.

Hi All,

I am trying to copy data from one dataset to another dataset and I am
getting this error?

Can anybody help me?
Thanks,
Mohan

Disclaimer:
The contents of this e-mail are strictly confidential and may be
privileged.  It represents solely the views of the author and is meant only
for the stated recipient/s.
Any unauthorized distribution is strictly prohibited.  F J Benjamin Group
or its subsidiaries will not accept responsibility for any damage caused by
this e-mail or
attachment/s (if any), which have been checked for viruses.

Please visit our website http://www.fjbenjamin.com





Yahoo! Groups Links





                                                    
               Yahoo! Groups Sponsor                
                                                    
                                                    
                                                    
                   ADVERTISEMENT                    
    (Embedded image moved to file: pic29314.gif)    
                                                    
                                                    
 (Embedded image moved to file: pic09503.gif)       
                                                    



Yahoo! Groups Links
     To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

     To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

     Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


     Disclaimer:
     The contents of this e-mail are strictly confidential and may be
     privileged.  It represents solely the views of the author and is meant
     only for the stated recipient/s.
     Any unauthorized distribution is strictly prohibited.  F J Benjamin
     Group or its subsidiaries will not accept responsibility for any
     damage caused by this e-mail or
     attachment/s (if any), which have been checked for viruses.

     Please visit our website http://www.fjbenjamin.com

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to