I'm editing radgrid using template
here is my code
<
EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" >
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small"><b>Name</b></td>
<td><asp:TextBox runat="server" ID="Name" Width="250px" Text='<%# Bind("Name") %>' /></td>
</tr>
<tr class="EditFormHeader">
<td colspan="2" style="font-size: small">
<b>Title</b>
</td>
<td><asp:TextBox runat="server" ID="Title" Width="250px" Text='<%# Bind("Title") %>' /></td>
</tr>
I am updating from code behind
protected
void radgrid_UpdateCommand(object source, GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
TextBox txtName = (TextBox)editedItem.FindControl("Name");
string Name = txtName .Text;
TextBox txtTitle = (TextBox)editedItem.FindControl("Title");
string Title = txtTitle.Text;
}
But this update 'Name' and 'Title' returns the old values not the updated one.
Need help.