Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
14
Reply
this code gives me error of... Index was out of range
ahmed fahd
Jan 8 2013 5:40 AM
1.8k
Reply
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(i) = dt.Rows(i)("Emp_ID")
DataGridView1.SelectedRows(i).Cells(i) = dt.Rows(i)("Emp_Name")
DataGridView1.SelectedRows(i).Cells(i) = dt.Rows(i)("Day_Dat")
i = i + 1
Next
is there a problem clear here ? :(
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
14
)
Next Recommended Forum
how to change sytem appeareance of System through code
Change button txt according to the gridview checkbox state ?