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
ahmed fahd
NA
58
45.9k
what is wrong in this 4 lines ?
Jan 9 2013 1:22 PM
this code gives me error of
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Dim i As Integer = 0
For Each r As DataRow In dt.Rows
DataGridView1.SelectedRows(i).Cells("emp_name") = dt.Rows(i)("Emp_Name")
DataGridView1.SelectedRows(i).Cells("emp_id") = dt.Rows(i)("Emp_ID")
DataGridView1.SelectedRows(i).Cells("date_") = dt.Rows(i)("Day_Dat")
i = i + 1
Next
Reply
Answers (
4
)
Softphone development in 10 easy steps
how to allocate datatable rows to datagridview rows