Strange happenings in my DataGrid

C

Chris

Hey,

I have a DataGrid that allows for a combobox in a column through a inherited
DataGridColumnStyle and a inherited ComboBox. I have 3 of these columns in
a row. The overall problem is that when I hit TAB on the first of 3 of
these columns the cursor moves into the second and then immideantly leaves
and moves to the third box. if you leave the second one it moves to a new
line (through the 3rd one). I'm trying to figure out why this behavior is
happening but I can't figure out how to trap what's causes it. To make this
even stranger of a problem, if I break point somewhere in the process of
leaving the first combo box, everthing work great. This makes it sound like
a timing issue, which is just freakin me out. Any thought where I can start
to break down this problem?

On a side note where would I trap the "TAB" itself. I can catch leaving the
the inherited combobox and also catch the keyup event for the combobox, but
the keyup event doesn't get fired when you hit tab. Also the datagrid.keyup
event doesn't get fired when you hit "TAB" so where can I trap that event?

thanks
Chris
 
C

Cor Ligthert

Chris,

The combobox has a lot of bugs, one of the bugs is in my opinion that it
goes in my idea in certain situations completly out of scope. However I
never saw this as bug on MSDN, so I am not sure if it was when I had that
problem my fault or a bug.

The situation when that happens with me is by instance when the combobox is
initializing. Therefore are you sure you are not initializing in the place
where you use the first combobox. Or better that all datasources and members
are right set when you come to the first comboboxcolumn?

Just to get an idea.

Cor
 

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