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






Gets or sets the data item corresponding to the selected row.

Syntax

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