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
Smart Lucky
NA
555
639.6k
GridView
Aug 4 2011 2:45 AM
Hi
hi i am trying to print edited colum values in this way it is giving me excetopn can any one tell me why exception is occured and how i henadel it....?
TextBox txtid = (TextBox)GridView2.Rows[grv.RowIndex].Cells[4].Controls[1];//
Excetion is Occured here Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
TextBox txtname = (TextBox)GridView2.Rows[grv.RowIndex].Cells[4].Controls[1];
TextBox txtempid = (TextBox)GridView2.Rows[grv.RowIndex].Cells[5].Controls[1];
Response.Write("ID is" + txtid.Text );//+ "Name is" + txtname.Text + "Emp id" + txtempid.Text);
Reply
Answers (
2
)
GridView
Deleting Multiple Rows At a time in Gridview