Tuesday, October 19, 2010

Selecting Grid Value in RowEditing , RowDeleting,SelectedIndexChanging ് Event

protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
string str = GridView1.Rows[e.NewEditIndex].Cells[1].Text;
}


RowDeleting
------------------------------
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string str = GridView1.Rows[e.RowIndex].Cells[1].Text;
}


SelectedIndexChanging Event
----------------------------
protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
string str = GridView1.Rows[e.NewSelectedIndex].Cells[1].Text;
}

No comments: