TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nepethya Rana
NA
335
152k
How to populate dataset with list of objects ?
Aug 1 2017 11:21 AM
I do have list of students. How do i create dataSet and populate these object in data set with column name as well?
List<Student> students = new List<Student>()
{
new Student {RollNumber=1, Name = "john", Grade=2, Pass = true },
new Student {RollNumber=2, Name = "Jeana", Grade=2, Pass = true },
new Student {RollNumber=3, Name = "Smith", Grade=2, Pass = false },
new Student {RollNumber=4, Name = "Ron", Grade=2, Pass = true },
new Student {RollNumber=5, Name = "Mark", Grade=2, Pass = false },
new Student {RollNumber=6, Name = "Phillip", Grade=2, Pass = true },
};
}
Reply
Answers (
1
)
datagridview selectedRow value display value multi textbox
Populating asp.net table data from database