/// <summary> /// Handles the Load event of the FrmS51H control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> private void FrmS51H_Load(object sender, EventArgs e) { _inventoryItemCategoriesPresenter.Display(true); _activitiesPresenter.DisplayActive(true); cboActivity.EditValue = @"00000000-0000-0000-0000-000000000000"; cboInventoryType.EditValue = @"00000000-0000-0000-0000-000000000000"; _inventoryItemsPresenter.DisplayByIsActive(true); Selection = new GridCheckMarksSelection(gridInventoryView); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; gridInventoryView.OptionsSelection.EnableAppearanceFocusedRow = true; gridInventoryView.OptionsSelection.EnableAppearanceFocusedCell = false; }
/// <summary> /// Handles the EditValueChanged event of the cboInventoryType control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param> private void cboInventoryType_EditValueChanged(object sender, EventArgs e) { if (cboInventoryType.EditValue == null) { return; } if ((string)cboInventoryType.GetColumnValue("InventoryItemCategoryId") == "<<Tất cả>>") { InventoryItemCategoryId = null; } else { InventoryItemCategoryId = (string)cboInventoryType.GetColumnValue("InventoryItemCategoryId"); } _inventoryItemsPresenter.DisplayByIsActive(true); Selection = new GridCheckMarksSelection(gridInventoryView); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 55; // Selection.SelectAll(); }
private void FrmInventoryItemList_Load(object sender, EventArgs e) { _inventoryItemCategoriesPresenter.Display(true); _inventoryItemsPresenter.DisplayByIsActive(true); Selection = new GridCheckMarksSelection(gridViewInventoryItem); Selection.CheckMarkColumn.VisibleIndex = 0; Selection.CheckMarkColumn.Width = 40; StateCheck = true; SetChecked(); gridViewInventoryItem.OptionsSelection.EnableAppearanceFocusedRow = true; gridViewInventoryItem.OptionsSelection.EnableAppearanceFocusedCell = false; }