private void EditorInitialize(object sender, EditorInitializeEventArgs e)
        {
            if (sender == nameNodeControl)
            {
                TextBox textBox = e.Editor as TextBox;
                if (textBox != null)
                {
                    textBox.KeyDown += new KeyEventHandler(textBox_KeyDown);
                }
            }
            else if (sender == typeNodeControl)
            {
                ComboBox comboBox = e.Editor as ComboBox;
                if (comboBox != null)
                {
                    if (e.Node != null && e.Node.Tag != null)
                    {
                        GrtListNode node = e.Node.Tag as GrtListNode;

                        String value;
                        grtList.get_field(node.NodeId, (int)IndexListWrapper.IndexListColumns.Type, out value);

                        comboBox.Items.Clear();
                        List <string> indexTypes = tableEditorWrapper.get_index_types();
                        foreach (string indexType in indexTypes)
                        {
                            comboBox.Items.Add(indexType);

                            // Make sure the previous selected item is selected again
                            if (indexType.Equals(value))
                            {
                                comboBox.SelectedIndex = comboBox.Items.Count - 1;
                            }
                        }
                    }

                    comboBox.KeyDown        += new KeyEventHandler(textBox_KeyDown);
                    comboBox.DropDownClosed += new EventHandler(comboBox_DropDownClosed);
                }
            }
        }