Spread ASP.NET 16
Spread for ASP.NET 16 Product Documentation / Developer's Guide / Customizing with Cell Types / Understanding How Cell Types Work / Understanding How Cell Type Affects Model Data
In This Topic
    Understanding How Cell Type Affects Model Data
    In This Topic

    The cell type has two methods that control how data is displayed from the data model and how data is written to the data model. The formatter method takes the data from the data model and formats it for display. The parser method writes the data to the data model. Different cell types write different types of data to the data model.

    The following table lists the editable cell types, and how each cell type works with the model.

    Editable Cell Type Data Type Written to Model
    CurrencyCellType Decimal
    DateTimeCellType Date-Time Object
    DoubleCellType Double
    GeneralCellType Depends whether Date-Time, Boolean, or String
    IntegerCellType Integer
    PercentCellType String
    RegExpCellType String
    TextCellType String

    The following table lists the graphical cell types, and how each cell type works with the model.

    Graphical Cell Type Data Type Written to Model
    ButtonCellType Boolean
    CheckBoxCellType Integer
    ComboBoxCellType Depends on value of EditorValue property. String, if EditorValue = String or item data, Integer, if EditorValue = index
    HyperLinkCellType String
    ImageCellType Null
    LabelCellType String
    MultiColumnComboBoxCellType Type of the selected value
    RadioButtonListCellType Depends on value of EditorValue property. String, if EditorValue = String or item data, Integer, if EditorValue = index
    TagCloudCellType Null