Bug in ErrorProvider?

Hi together, I have a gridgrouping control which is bound to a dataset object (containing two tables). I have attached a sample project. Now when I try the following procedure I get an grid exception: Error Description: 1. Collapse table "Test 1" and table "Test 2". 2. Now enter a new value in column "A" of table "Test 1" and press enter. 3. You should get an error message that column "B" doesn''t allow nulls (that''s ok). Press ok. 4. Now press the cursor down key (directly after the step before)! (table "Test 2" should be highlighted). 5. Now try again to enter something in column "A" of table "Test 1" -> you should get an exception - something like this: catched at Syncfusion.Windows.Forms.Grid.GridOriginalTextBoxControl.WndProc(Message& msg) in :line 0 catched at Syncfusion.Windows.Forms.Grid.GridCurrentCell.ConfirmChanges(Boolean closeDropDown) in :line 0 Any ideas what''s wrong? Cheers, Markus GridException_8160.zip

1 Reply

AD Administrator Syncfusion Team August 31, 2005 12:13 PM UTC

I think this is a defect, but will have to confirm this through the grid architect. Until there is a release with this corrected, I think you can avoid the problem using some events. Here is a try at this. http://www.syncfusion.com/Support/user/uploads/GridException_a9ca5095.zip TableControlCurrentCellControlKeyMessage is used to handle the Enter key which is switched to a tab key. TableControlCurrentCellKeyDown is used to handle the up and down keys. CurrentRecordContextChanged is used to validate the cell as you move from cell to cell, and cancels bad moves before the grid does them.

Loader.
Up arrow icon