Esempio n. 1
0
        public void EmployeeMode()
        {
            TBikeDAL MyDAL = new TBikeDAL();

            DetermineItemStatus();
            DataTable ResultTable = MyDAL.SelectAllEmployeeByDynamic(TBID.Text, TBName.Text, TBRankDesc.Text, TBAddress.Text, TBEmail.Text, TBCreatedBy.Text);

            Column1.Header                = "Employee ID";
            Column1.Binding               = new Binding("EmployeeID");
            Column2.Header                = "Employee Name";
            Column2.Binding               = new Binding("EmployeeName");
            Column3.Header                = "Username";
            Column3.Binding               = new Binding("Username");
            Column4.Header                = "Rank Description";
            Column4.Binding               = new Binding("EmployeeRankDesc");
            Column5.Header                = "Email Address";
            Column5.Binding               = new Binding("Email");
            Column6.Header                = "Date Of Birth";
            Column6.Binding               = new Binding("DateOfBirth");
            Column7.Header                = "Home Address";
            Column7.Binding               = new Binding("[Address]");
            Column8.Header                = "Last Login-Time";
            Column8.Binding               = new Binding("LastLoginTime");
            Column9.Header                = "";
            Column10.Header               = "";
            dataGrid1.ItemsSource         = ResultTable.DefaultView;
            dataGrid1.AutoGenerateColumns = false;
        }