ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1ViewRow Class / ItemArray Property

In This Topic
    ItemArray Property
    In This Topic
    Gets or sets the column values of this row through an array.
    Syntax
    'Declaration
     
    Public Property ItemArray As System.Object()
    public System.object[] ItemArray {get; set;}
    Remarks
    The order of elements in the assigning or returning array coresponds to the order of C1ViewColumn objects in the C1DataView.Columns collection of the owning C1DataView.

    When this property value is set, a null value in the assigning array means that value is not specified (setting a value to the corresponding column is skipped). You should specify a System.DbNull value instead of a null value to set a column to null. In the same manner read only columns are skipped as well.

    A number of items in the assigning array can be less than a number of columns in the owning C1DataView, in this case the values of the rest of columns not covered by array values are not changed.

    If row is not in the editing state when column value is being assigned, that is the BeginEdit method was not called for this row, then BeginEdit method is called automatically, column values are assigned, after that the EndEdit method is called. If row is in the editing state before an assignment then it stays in the same state after it.

    See Also