PowerWEB LiveControls for ASP.NET
LiveEditCommandColumn Class
Members  See Also  Send comments on this topic.
Dart.LiveControls Namespace : LiveEditCommandColumn Class



A special column type for the LiveDataGrid control that contains the Edit command buttons for editing data items in each row.

Syntax

Visual Basic (Declaration) 
Public Class LiveEditCommandColumn 
   Inherits LiveDataGridColumn
Visual Basic (Usage)Copy Code
Dim instance As LiveEditCommandColumn
C# 
public class LiveEditCommandColumn : LiveDataGridColumn 
C++/CLI 
public ref class LiveEditCommandColumn : public LiveDataGridColumn 

Remarks

Use the LiveEditCommandColumn class to create a special column for the LiveDataGrid control that contains the Edit, Update, and Cancel command buttons for each data row in the grid. These buttons allow you to edit the values of a row in the LiveDataGrid control.

If no row is selected, an Edit command button displays in the LiveEditCommandColumn for each data row in the LiveDataGrid control. When the Edit button for an item is clicked, the EditCommand event is raised and the Edit button is replaced with the Update and Cancel command buttons. You need to provide code to handle this event. A typical event handler sets the EditItemIndex property to the selected row and then rebinds the data to the LiveDataGrid control.

Note You must provide values for the CancelText, EditText, and UpdateText properties. Otherwise, the associated command buttons will not appear in the LiveEditCommandColumn.

The buttons in the LiveEditCommandColumn can be set to display as hyperlinks or push buttons by setting the ButtonType property.

Clicking the Update or Cancel command button raises the UpdateCommand or CancelCommand event, respectively. You need to provide code to handle these events.

Inheritance Hierarchy

System.Object
   System.Web.UI.WebControls.DataGridColumn
      Dart.LiveControls.LiveDataGridColumn
         Dart.LiveControls.LiveEditCommandColumn

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.0.2
© 2012 Dart Communications. All Rights Reserved.