MobileForms Toolkit Documentation

Row.SetData Method (IDataRecord)

Copies the data from data reader or other data records.

public virtual void SetData(
IDataRecord reader
);

Parameters

reader
Data reader or other implementation of IDataRecord.

Remarks

Old data are overwritten. The field count is changed to the FieldCount of the reader. Data mapping is ignored when loading the data. It is recommended to (re)create the mapping from the reader

Example

In this example is the typical usage of this method:

[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.SetData Overload List