Adding null option to ValueList

4 replies. Last post: January 31, 2011 1:42 AM by Somer B.
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Somer B.Member

I have a dropdownlist column which is bound to a foreign key column and  populates its data from another LinqDataSource.
To add "null" selection option for that column, i'm inserting a null object to the first position of returned object list during LinqDataSource_OnSelected event [ ((IList)e.Result).Insert(0, null); ].
This seems fine for having "null" selection option for that column. But when posting update with batchupdate it is giving error, as batchupdate sending empty string instead of null for that column.
How can i solve this?

All times are GMT -5. The time now is 3:42 AM.
Previous Next