Skip to main content
Version: 4.2

DataGridViewAvatarColumn

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Defines avatar presentation for DataGridViewAvatarCell cells while retaining their bound values.

public class DataGridViewAvatarColumn : DataGridViewColumn, 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 DataGridViewAvatarColumn { Name = "Avatar", DataPropertyName = "Value" };
grid.Columns.Add(column);

Constructors​

Instance member DataGridViewAvatarColumn()​

Creates the typed template and read-only defaults.

Properties​

Instance member AutoColor​

Boolean: Gets or sets chooses a stable theme palette from the displayed name. (Default: True)

Instance member CellTemplate​

DataGridViewCell: Gets or sets the required DataGridViewAvatarCell template.

Instance member ImageMember​

String: Gets or sets image or image-source member path. (Default: "")

Instance member 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)

Instance member Shape​

AvatarShape: Gets or sets portrait outline shape. (Default: Circle)

Instance member Size​

Int32: Gets or sets avatar diameter in pixels, from 12 through 128. (Default: 32)

Instance member SubTextMember​

String: Gets or sets secondary label member path. (Default: "")

Instance member TextMember​

String: Gets or sets full name member path; empty uses the cell value. (Default: "")

Methods​

Instance member Clone()​

Clones presentation settings and owned collections without copying event subscriptions.

Returns: Object. An independent column.

Protected member OnAvatarClick(e)​

Raises AvatarClick even when a derived class has no subscribed handlers.

ParameterTypeDescription
eDataGridViewVisualCellEventArgsActivated row and server action.

Events​

Instance member AvatarClick​

EventHandler<DataGridViewVisualCellEventArgs> Occurs on validated AvatarClick activation, without changing the bound record.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.