Hi, In ur .aspx file, make the first column of ur datagrid as: Then in ur .aspx.vb file write functions to make the code functional. Private Sub DataGrid1_Edit(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.EditCommand setSessionValue("ProdId", e.Item.Cells(1).Text) DataGrid1.EditItemIndex = e.Item.ItemIndex DataGrid1_DataBind() End Sub //Here cell(6)in the datagrid is made editable. Private Sub DataGrid1_Update(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.UpdateCommand Dim pVendors As New ProductVendor() pVendors.setEnv(getDBConnectString, getUserLogin) pVendors.UpdatePreference(getSessionValue("ProdId"), CType(e.Item.Cells(6).Controls(0), TextBox).Text()) DataGrid1.EditItemIndex = -1 DataGrid1_DataBind() End Sub //In this way u can make any of the columns of ur datagrid editable by specifying the cell no of the column of the datagrid. Private Sub DataGrid1_Cancel(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.CancelCommand DataGrid1.EditItemIndex = -1 DataGrid1_DataBind() End Sub Try it out. Regards, Rajiya -- modified at 6:52 Thursday 9th March, 2006