MobileForms Toolkit Documentation

Row  Constructor (Int32, Int32, Mapping)

Creates new Row, with chosen template indices and field names, without data.

public Row(
int templateIndex,
int selectedTemplateIndex,
Mapping fieldNames
);

Parameters

templateIndex
Index to the Templates template set.
selectedTemplateIndex
Index to the Templates template set to use when the row is Selected.
fieldNames
The Mapping of the field names, or Empty.

Remarks

Use this constructor when mapping is known, and data will be set afterwards, e. g. from the data reader.

Example

[Visual Basic]

' this is how to create the row from data reader
Dim map As New Mapping(reader)
Dim r As New Row(0, 1, map)
r.SetData(reader)
            
[C#]

// this is how to create the row from data reader
Mapping map = new Mapping(reader);
Row row = new Row(0, 1, map);
row.SetData(reader);
            

See Also

Row Class | Resco.Controls.AdvancedList Namespace | Row Constructor Overload List