Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How you will set the datarelation between two columns?

Answer Posted / muthu kumar

DataSet d = new DataSet();
DataColumn parentDC = new
DataColumn(d.Tables["parentTable"].Columns["id"]);
DataColumn childDC = new
DataColumn(d.Tables["ChildTable"].Columns["id"]);
DataRelation ds = new DataRelation("relation name",
parentDC, childDC);
d.Relations.Add(ds);

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between datagridview and datagrid control in winforms?

1039


Define the data provider classes that is supported by ado.net?

987


What does ado stand for in ado.net?

1111


Is ado.net dead?

1020


Explain how to find the given query is optimised one or not?

1037


What are the advantages of using datalist?

1008


What is the advantage of ado.net?

1020


What are the differences between OLEDB and SQLClient Providers?

1170


What providers does Ado.net uses?

1024


How can we save all data from dataset?

1009


Give an example that shows how to execute a stored procedure in ado.net?

1077


What is microsoft ado.net?

1165


How to generate a single aggregate?

985


What is ado.net code?

938


What is ado.net in vb net?

932