Beispiel #1
0
 private void superGrid_CellActivated(object sender, GridCellActivatedEventArgs e)
 {
     if (e.NewActiveCell.ColumnIndex == 0)
     {
         RefreshJianNum();
     }
 }
Beispiel #2
0
 private void OnCellActivated(object sender, GridCellActivatedEventArgs e)
 {
     if (!_loading)
     {
         _itemEditor.Item = e.NewActiveCell.GridRow.Tag;
     }
 }
 private void _grid_CellActivated(object sender, GridCellActivatedEventArgs e)
 {
     if (!_loading)
     {
         _currentRow = e.NewActiveCell.GridRow;
         ShowCurrentRow();
     }
 }
Beispiel #4
0
 private void _grid_CellActivated(object sender, GridCellActivatedEventArgs e)
 {
     if (!_loading)
     {
         _currentRow = e.NewActiveCell.GridRow;
         ChangeCustomActionStatus?.Invoke("RemoveQuestion", true);
     }
 }
Beispiel #5
0
 private void grid_MasterGridCellActivated(object sender, GridCellActivatedEventArgs e)
 {
     _selectedData = (TS_ROLE)e.NewActiveCell.GridRow.DataItem;
     if (string.IsNullOrEmpty(_selectedData.RoleCode))
     {
         return;
     }
     SetDetailGridDataSource(_db, _selectedData.RoleCode);
 }
Beispiel #6
0
        private void grid_MasterGridCellActivated(object sender, GridCellActivatedEventArgs e)
        {
            _selectedData = (TS_OPERATOR)e.NewActiveCell.GridRow.DataItem;
            if (_selectedData == null)
            {
                return;
            }
            prop.SelectedObject = _selectedData;

            SetDetailGridDataSource(_db, _selectedData.OperCode);
        }
Beispiel #7
0
        private void grid_GridCellActivated(object sender, GridCellActivatedEventArgs e)
        {
            //            MessageBox.Show(e.GridCell.GridRow.DataItem.ToString());
            _bill = BillController.GetVWBill(_db, grid.MasterUid);
            if (_bill == null)
            {
                return;
            }
            var count = SetDetailDataSource(_bill.单据编号);

            grid.IsDetailVisible = count > 0;
        }
Beispiel #8
0
        private void grid_GridCellActivated(object sender, GridCellActivatedEventArgs e)
        {
            //            MessageBox.Show(e.GridCell.GridRow.DataItem.ToString());
            SpareEntities db = EntitiesFactory.CreateSpareInstance();

            _bill = db.VW_BILL.SingleOrDefault(p => p.UID == grid.MasterUid);
            if (_bill == null)
            {
                return;
            }
            var billNum = _bill.单据编号;
            var count   = SetDetailDataSource(billNum);

            grid.IsDetailVisible = count > 0;
        }
Beispiel #9
0
        private void GridMaster_CellActivated(object sender, GridCellActivatedEventArgs e)
        {
            if (e.NewActiveCell.RowIndex < 0 || e.NewActiveCell.ColumnIndex < 0)
            {
                return;
            }

            _masterUid = Convert.ToInt32(e.NewActiveCell.GridRow.Cells["UID"].Value);
            esp.BringToFront();
            if (epProperty.Visible)
            {
                pg.SelectedObject = e.NewActiveCell.GridRow.DataItem;
            }

            try
            {
                MasterGridCellActivated?.Invoke(sender, e);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Beispiel #10
0
 private void grid_CellActivated(object sender, GridCellActivatedEventArgs e)
 {
     grow = e.NewActiveCell.GridRow;
 }
Beispiel #11
0
 private void grid_MasterGridCellActivated(object sender, GridCellActivatedEventArgs e)
 {
     prop.SelectedObject = e.NewActiveCell.GridRow.DataItem;
 }
Beispiel #12
0
 private void grid_GridCellActivated(object sender, GridCellActivatedEventArgs e)
 {
 }
Beispiel #13
0
 private void superGridControl1_CellActivated(object sender, GridCellActivatedEventArgs e)
 {
     e.NewActiveCell.BeginEdit(true);
 }
Beispiel #14
0
        private void grid_CellActivated(object sender, GridCellActivatedEventArgs e)
        {
            int rowindex = e.NewActiveCell.RowIndex;

            _selectrow = (GridRow)grid.PrimaryGrid.Rows[rowindex];
        }