« DataSet load patterns | Main | DataGrid behavior »

debugging DataGrid behavior

Problem: After re-loading a DataGrid via a context menu pick, edited cells revert to their pre-edit state as soon as new cell is selected.

Diagnosing:

1.       Loading multiple times before first display of Form doesn’t fail.

2.       Removing relation from schema doesn’t change behavior.

3.       Removing LinkLabel columns & sorting and AllowNew = false eliminates problem.

4.       It’s the AllowNew = false.

5.       Switching to Merge instead of direct Fill data set load pattern eliminates problem.

6.       Inserting a AllowNew = true & AllowNew = false around the clear/fill also eliminates the problem.

 

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)