Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I am using a ListView control to display a summary of product information.

I have added code to display product details in a seperate group box control that is populated when the using clicks on a product in the ListView. Not all fields in the Group box are applicable to all products so that some fields will always be null in the db. This throws an error when clicking on the product in the ListView.

Is there away that this can be resolved. Any help would be appreciated
Thanks
Posted

When the user clicks on the ListView, check the details for a null. If they are not null, don't populate the group box.
 
Share this answer
 
Try to replace null with some value in when you query database
 
Share this answer
 
Comments
Member 7940373 22-Jun-11 4:08am    
Thanks for the reply. What methos would I use to replace the null value. Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900