private void BindFormContents() { var pl = new PalletLocation(); lkPalletLocations.DataSource = PalletLocation.GetAll(); if (currentMode == Modes.GRVConfirmation) { gridReceives.DataSource = pl.GetReceivesForGRVConfirmation(CurrentContext.UserId); colLocation.Visible = false; colInsurance.Visible = false; colMargin.Visible = false; lcReprint.Visibility = LayoutVisibility.Always; lcRequestVoid.Visibility = LayoutVisibility.Always; lcVoid.Visibility = LayoutVisibility.Always; } }