private void OnRowActivated(object sender, GridRowActivatedEventArgs e) { if (!_loading) { _itemEditor.Item = e.NewActiveRow.Tag; } }
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(); } } }
private void _grid_RowActivated(object sender, GridRowActivatedEventArgs e) { if (!_loading) { if (e.NewActiveRow is GridRow gridRow) { _currentRow = gridRow; ChangeCustomActionStatus?.Invoke("RemoveQuestion", true); } } }
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; } } } }
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; } }
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; } }
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(); }