سلام بر همه برنامه نویسان ایرانی ! امروز کد پر کردن 2 دیتا گرید (Data Grid) به حالت master detail در C#.NET رو براتون آماده کردم.
DataRelation myDataRelation;
myDataRelation = new DataRelation("CustOrd", ds.Tables["Customers"].Columns["CustomerID"],
ds.Tables["Orders"].Columns["CustomerID"]);
// Add the relation to the DataSet
myDataRelation = new DataRelation("CustOrd", ds.Tables["Customers"].Columns["CustomerID"],
ds.Tables["Orders"].Columns["CustomerID"]);
// Add the relation to the DataSet