Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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());
         }
     }
 }
Ejemplo n.º 4
0
        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();
            }
        }
Ejemplo n.º 5
0
        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);
                }
            }
        }