Table of Contents

Class MatrixCellViewModel

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll

The value of one cell within a MatrixRowViewModel.

public sealed class MatrixCellViewModel
Inheritance
MatrixCellViewModel
Inherited Members

Remarks

Each cell names its own column through ColumnId and Label, so feed output stays readable without matching cells to Headers by position.

Properties

ColumnId

Identifier of the column this cell belongs to, matching Id (ProductCategory|{categoryId}|{fieldId}).

public string ColumnId { get; }

Property Value

string

Label

Translated label of the column this cell belongs to, matching Label.

public string Label { get; }

Property Value

string

Type

The DynamicwebAlias of the column's field type (e.g. "Link", "Filemanager"). Use the IsLink(), IsFile(), IsColor() extension methods to check.

public string? Type { get; }

Property Value

string

Value

Typed cell value, or null if the cell is empty. Cast via the extension methods: GetLink(), GetFile(), GetColor(), or read as a plain string for text/numeric fields.

public object? Value { get; }

Property Value

object
To top