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






Gets or sets the selection unit of gridview.

Syntax

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