peggie1990 0 Newbie Poster

Hi, May I know how to convert system.data.datatable to string?

foreach (DataRow row1 in dtSelectedContracts.Rows)//select any row of it, reference column
            {
                string contractID = row1[0].ToString();

                //populate the critical terms datatable                
                if (selectedContracts != null)
                {
                    selectedContracts = vrmdb.Get_CriticalTerms(contractID).Tables[0];
                }
                else
                {
                    foreach (DataRow row2 in vrmdb.Get_CriticalTerms(contractID).Tables[0].Rows)
                    {
                        selectedContracts.ImportRow(row2);
                    }
                }

And there is something wrong with this code: selectedContracts.ImportRow(row2);
In indicates no extension for it. May i know how to resolve it?
Thanks!