Problem with combobox in datagridview

When using combobox columns in a datagridview, I've encountered the following problems:

1.

I'm working with a datagridview which contains a databound combobox. The edit mode of the cells = EditOnEnter. When I select a comboboxcell for which no value has been selected yet, and I try to sort the grid on another column (in my case a text column), then I get the following error:

Value of '16' is not a valid for 'rowIndex'

Where 16 is the index of the row I've selected. The above problem doesn't occur when edit mode = EditOnKeyStrokeOrF2.

2.

If the selection mode of the grid = FullRowSelect (and edit mode = EditOnKeyStrokeOrF2), then my comboboxes are not populating. When selecting the combobox, then I also get the above error message.

3.

When I select a combobox, and enter the first character of one of the values in the combobox and click on enter, then the selection has been made and I move to the next comboboxcell. When I try to do this action again, I just move to the next comboboxcell, but my selection hasn't been made.
Are these bugs or am I doing something wrong?

[1112 byte] By [frgu] at [2008-2-6]
# 1
These sound like bugs. Is this on Beta2 build? Can you open a bug for the first and a separate bug for the second one. The third one sounds like something we've already fixed, but you are welcome to open a bug for it as well.

If you can include a simple repro app it really makes narrowing down the problem easier.

thanks!
-mark
Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...