Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET Core 1.0 > ASP.NET Core 1.0 General Discussion
| Search | Today's Posts | Mark Forums Read
ASP.NET Core 1.0 General Discussion For ASP.NET Core 1.0 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET Core 1.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 4th, 2016, 05:32 PM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2016
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default Create some employees and bind grid to the collection:

how can i create employees and bind grid to a collection?
The Following User Says Thank You to alexandarx5 For This Useful Post:
  #2 (permalink)  
Old June 4th, 2016, 07:09 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create some employees and bind grid to the collection:

Quote:
Originally Posted by alexandarx5 View Post
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;
}


Similar Threads
Thread Thread Starter Forum Replies Last Post
Grid Bind msbsam ASP.NET 2.0 Basics 1 December 19th, 2006 07:03 AM
Help to bind grid view msbsam ASP.NET 2.0 Professional 1 December 19th, 2006 06:55 AM
Grid bind using Button msbsam ASP.NET 2.0 Basics 0 December 15th, 2006 05:20 AM
Bind grid using AJAX chandan_tandon Crystal Reports 0 July 6th, 2006 08:44 AM
Bind a grid from multi tables? hany ASP.NET 1.0 and 1.1 Professional 2 January 22nd, 2006 11:26 AM





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