void radGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) { if (this.radGridView1.CurrentCell != null) { this.radSpinEditorRow.Value = this.radGridView1.CurrentCell.RowInfo.Index; this.radSpinEditorColumn.Value = this.radGridView1.CurrentCell.ColumnInfo.Index; } }
private void radGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) { if (e.NewCell != null) { this.radSpinEditorRow.Value = this.radGridView1.Rows.IndexOf(e.NewCell.RowInfo); this.radSpinEditorColumn.Value = this.radGridView1.Columns.IndexOf((GridViewDataColumn)e.NewCell.ColumnInfo); } UpdateState(e.NewCell != null ? e.NewCell.RowInfo : null, e.NewCell != null ? e.NewCell.ColumnInfo : null); }
private void RadGridView1_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) { if (e.NewCell != null && e.NewCell.ColumnInfo is GridViewRichTextColumn) { RichTextEditorCellElement cellElement = this.radGridView1.TableElement.GetCellElement(e.NewCell.RowInfo, e.NewCell.ColumnInfo) as RichTextEditorCellElement; if (cellElement != null) { RichTextEditorElement element = (RichTextEditorElement)((RichTextEditor)cellElement.Editor).EditorElement; RadRichTextEditor textBox = (RadRichTextEditor)element.HostedControl; this.richTextEditorRibbonBar1.AssociatedRichTextEditor = textBox; Console.WriteLine(textBox.GetHashCode()); } } }
private void grdExporters_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) { if (e.NewCell.ColumnInfo.Name != "colType") { var cell = e.NewCell.RowInfo.Cells["colType"]; if (cell.Value != null) { return; } this.grdImporters.ClearSelection(); cell.IsSelected = true; cell.BeginEdit(); } }
private void gridView_CurrentCellChanged(object sender, CurrentCellChangedEventArgs e) { if (e.NewCell != null) { string columnName = e.NewCell.ColumnInfo.HeaderText; string rowNumber = (e.NewCell.RowInfo.Index + 1).ToString(); this.radTextBoxCellNumber.Text = columnName + rowNumber; if (e.NewCell.Value != null) { this.radTextBoxCellContent.Text = e.NewCell.Value.ToString(); } else { this.radTextBoxCellContent.Text = String.Empty; } GridViewCellStyle style = e.NewCell.Style; if (style != null) { UpdateCombos(style); } } }