property G2antt.SingleSel as Boolean

Retrieves or sets a value that indicates whether the control supports single or multiple selection.

TypeDescription
Boolean A boolean expression that indicates whether the control supports single or multiple selection.

Use the SingleSel property to enable multiple selection. Use the SelectCount property to get the number of selected items. Use the SelectedItem property to get the selected item. Use the SelectItem to select or unselect a specified item. Use the FocusItem property to get the focused item. If the control supports only single selection, you can use the FocusItem property to get the selected/focused item because they are always the same. The control fires the SelectionChanged event when user selects an item. Use the SelForeColor and SelBackColor properties to specify colors for selected items. Use the SelectableItem property to specify the user can select an item. The FullRowSelect property specifies whether the selection spans the entire width of the control. Use the SelectAll method to select all visible items. Use the SelectOnClick property to disable selecting new items when the user clicks the chart area. The AllowSelectNothing property specifies whether the current selection is erased, once the user clicks outside of the items section. The SelectOnRelease property indicates whether the selection occurs when the user releases the mouse button.