private void grdTaxRate_RowDeleting(object sender, GridViewDeleteEventArgs e) { GridView grid = (GridView)sender; Guid guid = new Guid(grid.DataKeys[e.RowIndex].Value.ToString()); TaxRate.Delete(guid); WebUtils.SetupRedirect(this, GetRefreshUrl()); }