private List <ProjectionSet> GetSelectedItem() { List <ProjectionSet> items = new List <ProjectionSet>(); ProjectionSet itm = new ProjectionSet(); itm.strProjectionKey = DG.CurrentRow.Cells[0].Value.ToString(); itm.strMonthID = DG.CurrentRow.Cells[1].Value.ToString(); itm.strDivision = DG.CurrentRow.Cells[2].Value.ToString(); items.Add(itm); return(items); }
private List <ProjectionSet> GetSelectedItem() { List <ProjectionSet> items = new List <ProjectionSet>(); ProjectionSet itm = new ProjectionSet(); //itm.intSerial = Convert.ToInt16(DG.CurrentRow.Cells[0].Value.ToString()); itm.strProjectionKey = DG.CurrentRow.Cells[0].Value.ToString(); itm.strMonthID = DG.CurrentRow.Cells[1].Value.ToString(); itm.strProjectionName = DG.CurrentRow.Cells[2].Value.ToString(); itm.strProjectionDate = Convert.ToDateTime(DG.CurrentRow.Cells[3].Value).ToString("dddd, MMMM d, yyyy"); itm.strStartDate = Convert.ToDateTime(DG.CurrentRow.Cells[4].Value).ToString("dddd, MMMM d, yyyy"); itm.strEndDate = Convert.ToDateTime(DG.CurrentRow.Cells[5].Value).ToString("dddd, MMMM d, yyyy"); //itm.intfriday = Convert.ToInt16(DG.CurrentRow.Cells[4].Value.ToString()); //itm.intHoliday = Convert.ToInt16(DG.CurrentRow.Cells[5].Value.ToString()); //itm.strStatus = DG.CurrentRow.Cells[6].Value.ToString(); items.Add(itm); return(items); }