C# get GridView Selected Row
Posted on Sunday, May 1, 2011
|
1 Comment
protected void gvItemGrid_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow gRow = gvItemGrid.SelectedRow;
lblID.Text = gRow.Cells[1].Text;
lblName.Text = gRow.Cells[2].Text;
}
Set selection row in gridview in C#
ReplyDelete