Show / Hide Table of Contents

    IColumnMeta.Dddw Property

    .NET Standard 2.x

    Gets or sets properties that control the appearance and behavior of a column with the DropDownDataWindow edit style.

    Namespace: DWNet.Data

    Assembly: DWNet.Data.dll

    Syntax

    IDwDddw Dddw { get; set; }
    

    Return

    DWNet.Data.IDwDddw

    Properties that control the appearance and behavior of a column with the DropDownDataWindow edit style.

    Examples

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

    using DWNet.Data;
    using System;
    
    namespace Appeon.ApiDoc.IColumnMetaExamples
    {
        public class DddwExample
        {
            private readonly SchoolContext _context;
    
            public DddwExample(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 Columns.
                var columnMetas = datastore.DwMeta.Columns;
                Console.WriteLine("Columns Count: {0}", columnMetas.Count);
    
                // Gets the appearance and behavior properties of the first column.
                var dwDddw = columnMetas[0].Dddw;
                Console.WriteLine("HScrollBar: {0}", dwDddw.HScrollBar);
                Console.WriteLine("VScrollBar: {0}", dwDddw.VScrollBar);
    
                /*This code produces the following output:
                
                Columns Count: 5
                HScrollBar: false
                VScrollBar: false
                */
            }
        }
    }
    

    Example Refer To

    Model Class: D_Department
    DataWindow File: d_department

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon