コード例 #1
0
ファイル: Booking.cs プロジェクト: Smoothiesss/MyLastGift1
        void LoadGrid()
        {
            BookingBUS b  = new BookingBUS();
            DateTime   d  = DateTime.Now;
            DataTable  dt = b.getBookingbyDate(d);

            MessageBox.Show(dt.Rows.Count.ToString() + " " + d.ToString("M/d/yyyy HH:mm:ss"));
            gridControl1.BindingContext        = this.BindingContext;
            gridControl1.DataSource            = dt;
            gridView1.OptionsBehavior.Editable = false;
            gridView1.OptionsSelection.EnableAppearanceFocusedCell = false;
            //Console.WriteLine("2");
            //gridView1.OptionsBehavior.EditorShowMode += gridControl1.MouseDown;
            //gridView1.RowCellClick += LoadBookInf(gridView1);


            //colCHECKIN.
            //gridControl1.DataSource = dt;
            //foreach (DataRow dr in dt.Rows)
            //gridView1.AddNewRow(dr);
        }