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
Bineesh Viswanath
NA
1k
777.6k
Add DataRow into DataTable in C#
Oct 31 2013 6:28 AM
Sir, I need your help in how can Add DataRow into DataTable in C#.
Please Take a look to the comboBox Fill Function below. Please correct it.
DataTable dtbl = new DataTable();
dtbl=SpEmployeeId.ViewEmployeeIdbyEmployeeNameReport(Convert.ToDecimal(cmbEmployee.SelectedValue.ToString()));
DataRow dRow = dtbl.NewRow();
dRow["employeeId"] = "All"
dtbl.Rows.InsertAt(dRow, 0);
cmbEmployee.DataSource = dtbl;
cmbEmployee.DisplayMember = "employeeNo";
cmbEmployee.ValueMember = "employeeId";
My comboBox is to be look like:-
All
2
1
4
8
5
3
Reply
Answers (
4
)
How to use calendar control for creating appointments
Load multiple pages in listbox and view in picturebox?