Help with GridView
-
Hello, I am new to ASP.net 2.0. I have successfully bound a in-memory
DataTable
(not connected with a database) withGridView
. I have setAutoGenerateEditButton
property totrue
. Now whenever i click on Edit link, the page does postback, but the row does not become editable. I have also triedGridView1.Rows[e.NewEditIndex].RowState = DataControlRowState.Edit;
in RowEditing event handler. Am I missing something? Thanks in advance. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net -
Hello, I am new to ASP.net 2.0. I have successfully bound a in-memory
DataTable
(not connected with a database) withGridView
. I have setAutoGenerateEditButton
property totrue
. Now whenever i click on Edit link, the page does postback, but the row does not become editable. I have also triedGridView1.Rows[e.NewEditIndex].RowState = DataControlRowState.Edit;
in RowEditing event handler. Am I missing something? Thanks in advance. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.netTry setting
GridView1.EditIndex
property toe.NewEditIndex
in theRowEditing
event. Typically this assignment is made automatically, but maybe you have to explicitly set it given the data source you're using? (I'm making a guess on that)