private void frmGroupSizeMapping_Load(object sender, EventArgs e) { ProjectFunctions.ToolStripVisualize(Menu_ToolStrip); DataSet ds = ProjectFunctions.GetDataSet("sp_LoadGroupSizeMapping "); if (ds.Tables[0].Rows.Count > 0) { foreach (DataRow drOuter in ds.Tables[0].Rows) { if (ds.Tables[1].Rows.Count > 0) { foreach (DataRow drInner in ds.Tables[1].Rows) { if (drInner["GrpCode"].ToString() == drOuter["GrpCode"].ToString() && drInner["GrpSubCode"].ToString() == drOuter["GrpSubCode"].ToString() && drInner["SZSYSID"].ToString() == drOuter["SZSYSID"].ToString()) { drOuter["SizeDesc"] = drInner["SizeDesc"]; } } } } GridControl1.DataSource = ds.Tables[0]; GridView1.BestFitColumns(); } }