private void FillMonitorTable(int monitorId) { Monitor mon = ConfigurationDAL.GetMonitorById(monitorId); Material mat = ConfigurationDAL.GetMaterialById(mon.materialsId); List <Tuple <string, string> > monitorList = new List <Tuple <string, string> >(); monitorList.Add(new Tuple <string, string>("номер", mon.id.ToString())); monitorList.Add(new Tuple <string, string>("номер на материали", mon.materialsId.ToString())); monitorList.Add(new Tuple <string, string>("матрица", mon.matrix)); monitorList.Add(new Tuple <string, string>("aspect ratio", mon.aspectRatio)); monitorList.Add(new Tuple <string, string>("led", mon.led)); monitorList.Add(new Tuple <string, string>("производител", mon.producer)); monitorList.Add(new Tuple <string, string>("материали на поставка", mat.stand)); monitorList.Add(new Tuple <string, string>("материали на дисплей", mat.display)); MonitorGridView.DataSource = monitorList; MonitorGridView.DataBind(); }