Intersoft ClientUI Documentation
SelectionMode Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXGridView Class : SelectionMode Property






Gets or sets the selection behavior of the gridview.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property SelectionMode As SelectionMode
Visual Basic (Usage)Copy Code
Dim instance As UXGridView
Dim value As SelectionMode
 
instance.SelectionMode = value
 
value = instance.SelectionMode
C# 
[CategoryAttribute("Common Properties")]
public SelectionMode SelectionMode {get; set;}
Delphi 
public read-write property SelectionMode: SelectionMode; 
JScript 
CategoryAttribute("Common Properties")
public function get,set SelectionMode : SelectionMode
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property SelectionMode get_SelectionMode();
public: __property void set_SelectionMode( 
   SelectionMode value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property SelectionMode SelectionMode {
   SelectionMode get();
   void set (    SelectionMode value);
}

Remarks

UXGridView has three type of SelectionMode that you can choose from.

  • Single
    Only one item can be selected.
  • Multiple
    Allow multiple item to be selected.
  • Extended
    Allow multiple item to be selected. You need to hold Shift and / or Ctrl modifier to perform the multiple selection.

When a row is selected, the SelectedItem and SelectedItems property will be automatically synchronized. You can bind these properties to your ViewModel to capture the currently selected items.

Furthermore, you can also customize the SelectionUnit to one of the possible three values: Row, Cell or RowAndCell.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.