Exemplo n.º 1
0
        private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            UnbindDetails();

            try
            {
                if (gridView1.FocusedRowHandle < 0) return;
                _currentJob = (VJob)gridControl1.Views[0].GetRow(gridView1.FocusedRowHandle);
            }
            catch (Exception)
            {
                _currentJob = null;
            }

            BindDetails();
        }
Exemplo n.º 2
0
        private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            UnbindDetails();

            try
            {
                if (gridView1.FocusedRowHandle < 0)
                {
                    return;
                }
                _currentJob = (VJob)gridControl1.Views[0].GetRow(gridView1.FocusedRowHandle);
            }
            catch (Exception)
            {
                _currentJob = null;
            }

            BindDetails();
        }