Ejemplo n.º 1
0
        private void bindCashierCombo()
        {
            BLLUser   obj_BLLUser = new BLLUser();
            DataTable dt_User     = obj_BLLUser.LoadUserTableForAllData();

            cbx_Cashier.Items.Clear();
            cbx_Cashier.LoadingType      = MTGCComboBox.CaricamentoCombo.DataTable;
            cbx_Cashier.SourceDataString = new string[] { "Name", "LoginName", "UserId", "UserId" };
            cbx_Cashier.ColumnNum        = 4;
            cbx_Cashier.ColumnWidth      = "150;0;0;0";
            cbx_Cashier.SourceDataTable  = dt_User;

            cbx_Cashier.Text = string.Empty;
        }
        private void BindDataGridView()
        {
            BLLUser obj_BLLUser = new BLLUser();

            DataTable dt_User;

            dt_User = obj_BLLUser.LoadUserTableForAllData();

            dgv_UserList.DataSource = dt_User;

            NumberingTableForDataGridView(dt_User);

            FormatUserListDataGridView();
        }