Exemplo n.º 1
0
 private void OnRowActivated(object sender, GridRowActivatedEventArgs e)
 {
     if (!_loading)
     {
         _itemEditor.Item = e.NewActiveRow.Tag;
     }
 }
Exemplo n.º 2
0
        private void sgcStkOut_RowActivated(object sender, GridRowActivatedEventArgs e)
        {
            GridRow gridRow = sgcStkOut.PrimaryGrid.Rows[e.NewActiveRow.RowIndex] as GridRow;

            if (gridRow != null)
            {
                stkOutGuid = gridRow.Cells["colStkOutGuid"].Value.ToGuid();
            }
        }
 private void _grid_RowActivated(object sender, GridRowActivatedEventArgs e)
 {
     if (!_loading)
     {
         if (e.NewActiveRow is GridRow gridRow)
         {
             _currentRow = gridRow;
             ShowCurrentRow();
         }
     }
 }
Exemplo n.º 4
0
 private void _grid_RowActivated(object sender, GridRowActivatedEventArgs e)
 {
     if (!_loading)
     {
         if (e.NewActiveRow is GridRow gridRow)
         {
             _currentRow = gridRow;
             ChangeCustomActionStatus?.Invoke("RemoveQuestion", true);
         }
     }
 }
Exemplo n.º 5
0
 private void usgSource_RowActivated(object sender, GridRowActivatedEventArgs e)
 {
     if (e.NewActiveRow.RowIndex > -1)
     {
         GridRow gridRow = usgSource.PrimaryGrid.Rows[e.NewActiveRow.RowIndex] as GridRow;
         if (gridRow != null)
         {
             Guid?SourceBillLineGuid = gridRow.Cells["colSourceBillLineGuid"].Value.ToGuid();
             STK_StockReserveResult reserveResult = reserveList.FirstOrDefault(a => a.SourceBillLineGuid == SourceBillLineGuid);
             if (reserveResult != null)
             {
                 usgReserve.PrimaryGrid.DataSource = reserveResult.ReserveList;
             }
         }
     }
 }
Exemplo n.º 6
0
        private void sdgvSearch_RowActivated(object sender, GridRowActivatedEventArgs e)
        {
            GridRow GR = ((GridRow)e.NewActiveRow);

            if (GR == null || GR.Cells[0].Value.ToString().StartsWith("<b>") || GR.Cells["Header"].Value.ToString().ToUpper() == "REJECTED") // Only Accpeted and pending lists can be selected
            {
                sReturnValue          = string.Empty;
                sReturnTable          = string.Empty;
                txtSelectedValue.Text = string.Empty;
            }
            else
            {
                sReturnValue          = GR.Cells[0].Value.ToString().Trim();
                sReturnTable          = GR.Cells[1].Value.ToString().Trim();
                txtSelectedValue.Text = sReturnValue;
            }
        }
Exemplo n.º 7
0
        private void sdgvSearch_RowActivated(object sender, GridRowActivatedEventArgs e)
        {
            GridRow GR = ((GridRow)e.NewActiveRow);

            if (GR == null || GR.Cells[0].Value.ToString().StartsWith("<b>"))
            {
                sReturnValue          = string.Empty;
                sReturnTable          = string.Empty;
                txtSelectedValue.Text = string.Empty;
            }
            else
            {
                sReturnValue          = GR.Cells[0].Value.ToString().Trim();
                sReturnTable          = GR.Cells[1].Value.ToString().Trim();
                txtSelectedValue.Text = sReturnValue;
            }
        }
Exemplo n.º 8
0
        private void sdgvValidation_RowActivated(object sender, GridRowActivatedEventArgs e)
        {
            List <string> lstEqual = new List <string>();

            lstEqual.Add("MANDATORYFIELDS");
            lstEqual.Add("JOBTITLESPELLCHECK");
            lstEqual.Add("EMAILCOMPANYCHECK");
            lstEqual.Add("EMAILDUPECHECK");
            lstEqual.Add("EMAILPUBLICDOMAINCHECK");
            lstEqual.Add("NAMEDUPECHECK");
            txtWhenField.Text = dtValidation.Rows[e.NewActiveRow.RowIndex]["VALIDATION_FOR"].ToString();

            if (lstEqual.Contains(dtValidation.Rows[e.NewActiveRow.RowIndex]["VALIDATION_TYPE"].ToString(), StringComparer.OrdinalIgnoreCase))
            {
                txtWhenCondition.Text = "Equals";
            }
            else
            {
                txtWhenCondition.Text = dtValidation.Rows[e.NewActiveRow.RowIndex]["VALIDATION_TYPE"].ToString();
            }

            tagListControl1.Tags.Clear();
            tagListControl1.Tags = dtValidation.Rows[e.NewActiveRow.RowIndex]["CONDITION"].ToString().Split('|').ToList();
        }