DataGrid - Tab skips my custom column

W

WineNCheese

If you take the combobox column style from somewhere like the datagrid
faq at syncfusion.com and replace the combobox with a button or
another textbox and then fix up the code to compile and run, there
will be a problem. When tabbing into the column in question, the focus
will enter the column on the tab key press, and move on to the
following column on the tab key up. This is obviously not what is
desired.

The reason I ask is that I wrote my own databound combobox control
(because the Winforms one stinks - can't turn off the border,...), but
when I use it in the grid like is done with the combobox example in
the syncfusion datagrid faq, I get the behavior described above.
Further investigation shows that I get that behavior with just about
any control (button, textbox) except the raw combobox.

Any ideas?
 
W

WineNCheese

Here's more for the conundrum (sp?). I created my own custom column
style instead of deriving from the textbox one. All seemed to be
working, until I added a call to Focus() on my custom combobox control
from within the Edit method. Suddenly the erroneous tab behavior is
back. Why would calling Focus() on my control cause the focus to move
to the next control? Anybody?

I think I'm going to have to write my own datagrid. There's too much
magic going on inside the black box (aka black hole) here, and nobody
has any answers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top