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?
|
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
|