In the following code dtaddress is my datatable
protected void rgAddress_UpdateCommand(object sender, GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditableItem;
editedItem.OwnerTableView.AllowAutomaticUpdates = true // this line didnt work
int row = editedItem.RowIndex - 3; //removed header rows.. this is ugly
dtaddress.Rows[row]["address1"] = (editedItem["Address1"].Controls[0] as TextBox).Text;
dtaddress.Rows[row]["address2"] = (editedItem["Address2"].Controls[0] as TextBox).Text;
dtaddress.Rows[row]["city"] = (editedItem["City"].Controls[0] as TextBox).Text;
dtaddress.Rows[row]["state"] = (editedItem["State"].Controls[0] as TextBox).Text;
dtaddress.Rows[row]["country"] = (editedItem["Country"].Controls[0] as TextBox).Text;
dtaddress.Rows[row]["ZipCode"] = (editedItem["ZipCode"].Controls[0] as TextBox).Text;*/
e.Item.OwnerTableView.Rebind();
Also even after it comes out of updatecommand code block, the edit mode doesnt go away. Please help.