Esempio n. 1
0
        private DataGridViewModel <AfficheInfo> GetDataList()
        {
            DataGridViewModel <AfficheInfo> dataGridViewModel = new DataGridViewModel <AfficheInfo>();
            IList <AfficheInfo>             afficheList       = NoticeHelper.GetAfficheList();

            dataGridViewModel.rows  = afficheList.ToList();
            dataGridViewModel.total = afficheList.Count;
            foreach (AfficheInfo row in dataGridViewModel.rows)
            {
            }
            return(dataGridViewModel);
        }
 private void BindAffiche()
 {
     this.grdAfficheList.DataSource = NoticeHelper.GetAfficheList();
     this.grdAfficheList.DataBind();
 }