p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET Core 1.0 General Discussion (http://p2p.wrox.com/forumdisplay.php?f=808)
-   -   Create some employees and bind grid to the collection: (http://p2p.wrox.com/showthread.php?t=99014)

alexandarx5 June 4th, 2016 05:32 PM

Create some employees and bind grid to the collection:
 
how can i create employees and bind grid to a collection?

omosis2 June 4th, 2016 07:09 PM

Create some employees and bind grid to the collection:
 
Quote:

Originally Posted by alexandarx5 (Post 307617)
how can i create employees and bind grid to a collection?

i use "dapfor.Net Grid" check the below codes
//Create some employees and bind grid to the collection:
List<Employee> employees = new List<Employee>();
employees.Add(new Employee("John Smith", "Department of climate", "Director IT Security"));
employees.Add(new Employee("Walter Gaber", "Department of energy", "Divisional Support Unit Officer "));
employees.Add(new Employee("James Nickolls", "Department of energy", "Scientific Programer"));
employees.Add(new Employee("Cora Cornell", "Department of climate", "Head of Department"));
employees.Add(new Employee("Andrew Jebb", "Department of climate", "Divisional Support Unit Officer"));
employees.Add(new Employee("Julia Treace", "Department of energy", "Operations Manager"));
employees.Add(new Employee("Francis Maunton", "Department of climate", "Climate Change Coordinator"));

grid.DataSource = employees;
}


All times are GMT -4. The time now is 09:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.