Hi,
I've start from your demo "Grid view" --> "Use custom editor", to make a simple custom editor based on a textbox and a single button (like BrowseEditorElement)... but I've found a "strange" behaviour also in the BrowseEditorElement!
I try to explain (still referring to your demo "Grid view" --> "Use custom editor"):
only using the keyboard to navigate the grid (for example with the Tab key), starting typing in the second column, the customer editor of the cell becomes acitve, but the text just typed doesn't appear in the textbox of this custom control...
I think that this may be a desided behaviour, in consideration that in the demo the column rapresent a path (not to edit manually).
Anyway I've found this code that (for my opinion) doesn't work correctly.
Is this is a bug? How can I make my code work correctly?
Thank you in advance.
Luca
I've start from your demo "Grid view" --> "Use custom editor", to make a simple custom editor based on a textbox and a single button (like BrowseEditorElement)... but I've found a "strange" behaviour also in the BrowseEditorElement!
I try to explain (still referring to your demo "Grid view" --> "Use custom editor"):
only using the keyboard to navigate the grid (for example with the Tab key), starting typing in the second column, the customer editor of the cell becomes acitve, but the text just typed doesn't appear in the textbox of this custom control...
I think that this may be a desided behaviour, in consideration that in the demo the column rapresent a path (not to edit manually).
Anyway I've found this code that (for my opinion) doesn't work correctly.
public override void BeginEdit()
{
base.BeginEdit();
BrowseEditorElement editor = (BrowseEditorElement)this.EditorElement;
editor.TextBox.SelectAll(); // this is completely ignored
editor.TextBox.Focus(); // this is completely ignored - READING THE RETURN VALUE IT'S "FALSE"
editor.TextBox.TextChanging +=
new TextChangingEventHandler(TextBox_TextChanging);
editor.TextBox.TextChanged +=
new EventHandler(TextBox_TextChanged);
editor.TextBox.KeyDown +=
new KeyEventHandler(TextBox_KeyDown);
editor.Button.Click +=
new EventHandler(Button_Click);
}
Is this is a bug? How can I make my code work correctly?
Thank you in advance.
Luca