private void FillBoxSetTable(int boxId) { List <Tuple <string, string> > boxList = new List <Tuple <string, string> >(); BoxSet box = ConfigurationDAL.GetBoxSetById(boxId); Cpu cp = ConfigurationDAL.GetCpulById(box.cupId); Hdd hdd = ConfigurationDAL.GetHddlById(box.hddId); VideoCard video = ConfigurationDAL.GetVideoCardlById(box.videoCardId); boxList.Add(new Tuple <string, string>("номер", box.id.ToString())); boxList.Add(new Tuple <string, string>("процесор", cp.name)); boxList.Add(new Tuple <string, string>("процесорен производител", cp.producer)); boxList.Add(new Tuple <string, string>("дъно", box.motherboard)); boxList.Add(new Tuple <string, string>("рам", box.ram)); boxList.Add(new Tuple <string, string>("видео карта", video.name)); boxList.Add(new Tuple <string, string>("производител на видео карта", video.producer)); boxList.Add(new Tuple <string, string>("охлаждане", box.coolingSystem)); boxList.Add(new Tuple <string, string>("захранване", box.powerSupply)); boxList.Add(new Tuple <string, string>("лан карта", box.expansionCards)); boxList.Add(new Tuple <string, string>("хард диск", hdd.name)); boxList.Add(new Tuple <string, string>("производител на хард диск", hdd.producer)); boxList.Add(new Tuple <string, string>("преносими устройства", box.removableDevices)); boxList.Add(new Tuple <string, string>("кутия", box.box)); BoxSetGrid.DataSource = boxList; BoxSetGrid.DataBind(); }