DataGridViewActionsColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Defines actions presentation for DataGridViewActionsCell cells while retaining their bound values.
- C#
- VB.NET
public class DataGridViewActionsColumn : DataGridViewColumn, IGridVisualColumn
Public Class DataGridViewActionsColumn
Inherits DataGridViewColumn
Implements IGridVisualColumn
Presentation belongs to the column. Member paths resolve against the bound record, or sibling column names in unbound grids. Changes refresh grid data. These columns are read-only; cell clicks still raise the inherited grid CellClick event.
Example:
var column = new DataGridViewActionsColumn { Name = "Actions", DataPropertyName = "Value" };
grid.Columns.Add(column);
Constructors
DataGridViewActionsColumn()
Creates the typed template and read-only defaults.
Properties
Actions
CardActionCollection: Gets the observable server-owned commands; disabled and removed commands cannot execute.
CellTemplate
DataGridViewCell: Gets or sets the required DataGridViewActionsCell template.
IconOnly
Boolean: Gets or sets hides button text when an icon is available; tooltips retain labels. (Default: True)
MoreActionsText
String: Gets or sets the localized override for the "More actions" text. (Default: null)
The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.
Overflow
Int32: Gets or sets maximum visible actions before the overflow menu; zero displays all. (Default: 3)
ReadOnly
Boolean: Gets or sets whether the user can edit the column's cells. The default is true: the cells have no editor. (Default: True)
ShowOnHover
Boolean: Gets or sets reveals actions on pointer hover or keyboard focus. (Default: False)
Methods
Clone()
Clones presentation settings and owned collections without copying event subscriptions.
Returns: Object. An independent column.
Dispose(disposing)
Releases collection observation and the optional overflow menu.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | Whether managed resources are being released. |
OnActionClick(e)
Raises ActionClick even when a derived class has no subscribed handlers.
| Parameter | Type | Description |
|---|---|---|
| e | DataGridViewVisualCellEventArgs | Activated row and server action. |
Events
ActionClick
EventHandler<DataGridViewVisualCellEventArgs> Occurs on validated ActionClick activation, without changing the bound record.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |