Table of Contents

Class NoxGridButtonColumn

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

Button column. Clicking it raises the grid's CellButtonClick event.

public class NoxGridButtonColumn : NoxGridColumn, IComponent, IDisposable
Inheritance
NoxGridButtonColumn
Implements
Inherited Members

Constructors

NoxGridButtonColumn()

Creates a button column.

public NoxGridButtonColumn()

NoxGridButtonColumn(string, string)

Creates a button column with a name and header text.

public NoxGridButtonColumn(string name, string headerText)

Parameters

name string
headerText string

Properties

DefaultAlignment

Alignment of a new column of this kind.

protected override HorizontalAlignment DefaultAlignment { get; }

Property Value

HorizontalAlignment

DefaultSortMode

Sort mode of a new column of this kind.

protected override NoxGridColumnSortMode DefaultSortMode { get; }

Property Value

NoxGridColumnSortMode

DefaultWidth

Width of a new column of this kind.

protected override int DefaultWidth { get; }

Property Value

int

Text

Text shown on every button when UseColumnTextForButtonValue is True. Default: empty.

public string Text { get; set; }

Property Value

string

UseColumnTextForButtonValue

Uses Text as the button caption instead of the cell value. Default: False.

public bool UseColumnTextForButtonValue { get; set; }

Property Value

bool

Methods

FormatValue(object)

Converts a value to display text.

public override string FormatValue(object value)

Parameters

value object

Returns

string