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
Vikas Ahlawat
NA
564
817.8k
Gridview index problem,how excess editing row index?
Oct 16 2010 12:32 AM
I have write this code
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
string rowindex = Convert.ToString(GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text);
//there i find that GridView1.SelectedIndex value always -1
//string s = Convert.ToString(GridView1.Rows[e.RowIndex].Cells[1].Text);
//i try this but when i try to write rowindex then it not appear.
Response.Write("<script>alert('" + rowindex + "')</script>");
ModalPopupExtender1.Show();
}
So how excess index?
Reply
Answers (
1
)
Interop between VB6 and .Net
passing parameter through iframe src?