2
Answers

GridView

Smart    Lucky

Smart Lucky

13y
1.2k
1
Hi Dudes

I have gridview and it is papulated at run time and when i edit row and row is sucessfully edited and i want to id column will not be edited how can i do this can any one help me...?




 protected void Edit_Click(object sender, EventArgs e)
    {
        //con.Open();
        LinkButton lbn = sender as LinkButton;
        TableCell cell = lbn.Parent as TableCell;
        GridViewRow grv = cell.Parent as GridViewRow;
        GridView1.EditIndex = grv.RowIndex;
        ShowData();
        TitleMethod();
       // con.Close();
    }

Answers (2)