[DevExpress Support Team: CLONED FROM Q537098: Error double clicking a listview item (database view mapped)]
I am getting the same error and the cause is the null values, my question is how to supress this exception, the view i have will definitely have some null values so how to deal with it in this situation?
In general, when a key property contains a null value is abnormal and unacceptable for the application. Many features will not work at all or will operate with limitations. That said, I can recommend you a choice of the following solutions:1. Revise your database data and make corrections, if needed;
2. Consider making a composite key for your persistent class to decrease the probability of an empty key: Task-Based Help > How To: Map a Persistent Class to a Database View Which Has No Key Field
3. Consider using Non-Persistent Objects with an artificial unique key. Populate them with data from your database view manually using ADO.NET or XPO means.
4. Handle the DevExpress.ExpressApp.SystemModule > ListViewProcessCurrentObjectController > CustomProcessSelectedItem and other suitable events depending on your business tasks to prevent a standard operation over a corrupted record with an empty key to display a more user friendly message or provide another handling that meets your business needs.
If these solutions do not help you overcome your issue, send us a small debuggable sample with your latest implementations along with a database back or SQL view declaration code.