private void DeleteItem() { // Obtener los IDs de la fila seleccionada string LocationId = grdData.DataKeys[grdData.SelectedRowIndex][0].ToString(); // Delete the item OperationResult objOperationResult = new OperationResult(); _oOrganizationBL.DeleteLocation(ref objOperationResult, LocationId, ((ClientSession)Session["objClientSession"]).GetAsList()); }