private void GrdBanksCurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e) { var currentSelection = sender as RadGridView; if (currentSelection != null && currentSelection.CurrentCell?.Value != null && manageOwnersViewModel != null) { manageOwnersViewModel.SelectedFormCellValue = currentSelection.CurrentCell.Value.ToString().Trim(); } }
/// <summary> /// 变更SelectedTExt拓展; /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GridViewEx_CurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e) { if (e.NewCell == null) { return; } if (e.NewCell.Content is TextBox txb) { SelectedText = txb?.Text; } else if (e.NewCell.Content is TextBlock txbl) { SelectedText = txbl.Text; } }
private void GridView_CurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e) { var gridViewCell = e.NewCell; if (gridViewCell == null) { return; } this.selectedRow = e.NewCell.ParentRow.Item as EvidenceRow; var gridViewColumn = gridViewCell.Column; this.SelectedColumnName = gridViewColumn.UniqueName; DateTime dateTime; if (this.SelectedColumnName.TryParse(out dateTime)) { if (this.SelectedTheme != DataTheme.User) { this.SelectedInterpolationData = null; } else { this.SelectedInterpolationData = this.PipeLineData.UserDataObj[this.SelectedVertex.Key].InterpolatedNodeData[this.SelectedColumnName]; } } this.IsCellToolbarEnabled = gridViewColumn.UniqueName.TryParse(out dateTime); if (this.selectedColumnName.TryParse(out dateTime)) { this.Chart.Annotations.Remove(annotation => true); this.Plot(this.selectedColumnName); } }
private void gridView_CurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e) { }