Пример #1
0
        //Bind data source
        void assignMent( )
        {
            DataTable dt = _bll.getColumnOnly( );

            lupOdd.Properties.DataSource    = dt.Copy( ).DefaultView.ToTable(true, "DC001");
            lupOdd.Properties.DisplayMember = "DC001";
            lupPro.Properties.DataSource    = dt.Copy( ).DefaultView.ToTable(true, "DC002");
            lupPro.Properties.DisplayMember = "DC002";
            lupNum.Properties.DataSource    = dt.Copy( ).DefaultView.ToTable(true, "DC004");
            lupNum.Properties.DisplayMember = "DC004";
            lupNo.Properties.DataSource     = dt.Copy( ).DefaultView.ToTable(true, "DC003");
            lupNo.Properties.DisplayMember  = "DC003";
            lupSup.Properties.DataSource    = dt.Copy( ).DefaultView.ToTable(true, "DC009");
            lupSup.Properties.DisplayMember = "DC009";
            lupPer.Properties.DataSource    = dt.Copy( ).DefaultView.ToTable(true, "DC011");
            lupPer.Properties.DisplayMember = "DC011";
        }