you can use something like this.
<ItemTemplate>
<asp:TextBox ID="TxtFirstName" runat="server" Text='<%# Bind("FirstName") %>'></asp:TextBox>
</ItemTemplate>
initialy you keep the textbox disable and than
onclick of the row event you can enable the textbox so that user can insert value in that.