Hi,
I’m having problems with the insertion row blanking when none of the initialized values in the insertion row have been changed.
I pared it down to the most basic case:
1. I create a TableAdapter within a DataSet which creates a table with only 1 column of type int.
2. I hook this up to a binding source.
3. I create a GridControl, hook it up to the binding source, and add an insertion row.
4. In the GridInitializingNewDataRow event handler I use the following code:
e.DataRow.Cells[colPersonnelId.Index].Value = 60001;
5. I run the application and double click the insertion row. The value populates correctly.
6. HOWEVER if I hit enter now to complete the insertion the row is not inserted and the insertion row is blanked.
7. I hooked up the other grid events to see what was happening and EditCancelled appears to be called on the insertion row even though ValidationError is not called ( which is what I would expect if there has been a problem ).
8.NOTE: This is without any other processing. I am not trying to do anything other than add the row to the grid.
Is this a bug or am I missing something.
Any help would be greatly appreciated.
Cheers
Mansy
Imported from legacy forums. Posted by Mansy (had 593 views)