LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2016, 06:37 PM   #1
alexandarx5
LQ Newbie
 
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
Create some employees and bind grid to the collection:


how can i create employees and bind grid to a collection?
 
Old 06-04-2016, 06:42 PM   #2
ambrose4
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
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;
}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create some employees and bind grid to the collection: prince0 Programming 1 05-29-2016 04:48 PM
create another domain with different zone and forwarders - bind pedenski Linux - Newbie 2 05-13-2013 01:23 AM
How to Create Dense,grid and Sparse network for MANET In NS-2.33 vishalpolara Linux - Newbie 1 03-17-2013 04:12 AM
shell script to seperate male employees from female employees sarahm Linux - Newbie 11 05-11-2012 03:36 PM
How do I create a read-only bind mount in fstab? ShiningMasamune Linux - General 14 05-06-2012 09:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration