public void BindToSaleNo()
        {
            SaleController saleController = new SaleController();
            SaleCollection saleCollection = saleController.SelectList();

            SaleInfo saleInfo = new SaleInfo();

            saleInfo.SaleNo = "-Select One";
            saleInfo.SaleID = null;
            saleCollection.Insert(0, saleInfo);

            this.cboToSaleInvoiceNo.DisplayMember = "SaleNo";
            this.cboToSaleInvoiceNo.ValueMember   = "SaleID";
            this.cboToSaleInvoiceNo.DataSource    = saleCollection;
            this.cboToSaleInvoiceNo.SelectedIndex = 0;
        }
        private void BindToSaleNo()
        {
            SaleController saleController = new SaleController();
            SaleCollection saleCollection = saleController.SelectList();

            SaleInfo info = new SaleInfo();

            info.SaleNo = " - Select One - ";
            info.SaleID = null;
            saleCollection.Insert(0, info);

            cboToSaleNo.DisplayMember = "SaleNo";
            cboToSaleNo.ValueMember   = "SaleID";
            cboToSaleNo.DataSource    = saleCollection;

            cboToSaleNo.SelectedIndex = 0;
        }