Translate

> > C# get GridView Selected Row

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;

        }

Comments:1

Powered by Blogger.