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






Gets or sets a value that indicates whether the user can add new rows.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Data Editing")>
Public Property CanUserAddRows As Boolean
Visual Basic (Usage)Copy Code
Dim instance As UXGridView
Dim value As Boolean
 
instance.CanUserAddRows = value
 
value = instance.CanUserAddRows
C# 
[CategoryAttribute("Data Editing")]
public bool CanUserAddRows {get; set;}
Delphi 
public read-write property CanUserAddRows: Boolean; 
JScript 
CategoryAttribute("Data Editing")
public function get,set CanUserAddRows : boolean
Managed Extensions for C++ 
[CategoryAttribute("Data Editing")]
public: __property bool get_CanUserAddRows();
public: __property void set_CanUserAddRows( 
   bool value
);
C++/CLI 
[CategoryAttribute("Data Editing")]
public:
property bool CanUserAddRows {
   bool get();
   void set (    bool value);
}

Remarks

Data editing in UXGridView involves three fundamental processes, Create, Update and Delete (CUD). You can enable each editing feature by setting the property CanUserAddRows, CanUserEditRows and CanUserDeleteRows respectively.

Example Title Copy Code
<Intersoft:UXGridView CanUserAddRows="True" CanUserDeleteRows="True" CanUserEditRows="True"/>

A NewRow element will appear in the top of the UXGridView user interface when you set the CanUserAddRows property to true, such as shown in the following illustration.

In addition, you can also delete and edit the selected item by setting both the CanUserEditRows and CanUserDeleteRows properties to true.

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.