Welcome Guest Search | Active Topics | Sign In | Register

Grid and NULL values Options
UweD
Posted: Thursday, May 14, 2009 7:27:19 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
Hello,
I use a Grid to show interger values from a table. When I change a value and I save it, it woks fine. Biút when I delete a value so that the cell is empty the item.Cells[x].Value is 0, NOT empty! That is a problem!! How can I change this?
eo_support
Posted: Thursday, May 14, 2009 3:14:55 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Integer does not have a null value. You can change the column's DataType to "String", that should give you a string representation of the value and an empty string will then be preserved. Note you will need to translate the string value back to whatever value that works with your database when you actually update the database.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.