Posted 17 Jun 2013 Link to this post
protected
void
grid1_UpdateCommand(
object
sender, GridCommandEventArgs e)
{
GridEditableItem editItem = e.Item
as
GridEditableItem;
Hashtable newValues =
new
Hashtable();
TextBox txt = ((TextBox)editItem.FindControl(
"txt1"
));
string
t = txt.Text;
// to get the value by accessing control in edittemplate
e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editItem);
id = newValues[
"EmployeeID"
].ToString();
// to get the value by uniquename
}
Posted 18 Jun 2013 Link to this post