Show / Hide Table of Contents

    IDwMeta.DataWindow Property

    .NET Standard 2.x

    Gets the IDwoDataWindow object which contains properties for the DataWindow object.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

    IWindowMeta DataWindow { get; }
    

    Return

    DWNet.Data.IWindowMeta

    An IDwoDataWindow object which contains properties for the DataWindow object.

    Examples

    The following code example demonstrates how to use the DataWindow property.

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IDwMetaExamples
    {
        public class DataWindowExample
        {
            private readonly SchoolContext _context;
    
            public DataWindowExample(SchoolContext dataContext)
            {
                // Sets the data context
                _context = dataContext;
            }
    
            public void Example()
            {
                // Instantiates datastore with datawindow: d_department
                var datastore = new DataStore("d_department", _context);
    
                datastore.Retrieve();
    
                // Gets the properties of the DataWindow object.
                var windowMeta = datastore.DwMeta.DataWindow;
    
                Console.WriteLine("Processing: {0}", windowMeta.Processing);
                Console.WriteLine("Table Columns Count: {0}", windowMeta.Table.Columns.Count);
                Console.WriteLine("Export XML Template Name: {0}", windowMeta.Export.Xml.UseTemplate);
    
                /*This code produces the following output:
                
                Processing: Grid
                Table Columns Count: 5
                Export XML Template Name: xml_default
                */
            }
        }
    }
    

    Example Refer To

    Model Class: D_Department
    DataWindow File: d_department

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon