ComponentOne ADO.NET DataExtender
C1.C1DataExtender.2 Assembly / C1.C1DataExtender Namespace / C1DataView Class / Definition Property

In This Topic
    Definition Property
    In This Topic
    Gets or sets view definition statement.
    Syntax
    'Declaration
     
    Public Property Definition As System.String
    public System.string Definition {get; set;}
    Remarks
    See the C1DataView Definitions topic for details on view definition language.

    If this property value is empty or contains a definition statement that has syntactic or semantic errors then view is inactive, that is represents neither columns nor rows.

    Example
    The following example uses a button control to update the view's definition at run time:
    • Visual Basic Private Sub Button1_Click(sender As Object, e As EventArgs) C1DataViewSet1.Views(0).Definition = TextBox1.Text End Sub
    • C# private void button1_Click(object sender, EventArgs e) { C1DataViewSet1.Views[0].Definition = textBox1.Text; }
    See Also