Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
Gridview index problem,how excess editing row index?
Vikas Ahlawat
13 years ago
2.3k
Reply
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?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Interop between VB6 and .Net
passing parameter through iframe src?