Smart    Lucky

Smart Lucky

  • NA
  • 555
  • 640.9k

GridView

Aug 4 2011 1:07 AM
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)