How to set strongly typed dataset attribute to null?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm trying to null out a value in a strongly typed dataset; the attribute's
datatype is long. No matter what I do I end up with a "can't convert null to
long" error.

What can I do to change the value to null? I'm coding in C#.

Thanks in advance for your help,


Andre Ranieri
 
I hope that helps you, use that code
this.yourDataSetName.yourDataTableName.Rows[0]["yourColumn"] =
System.DBNull.Value ;

Elmer Carías
DCE 2, El Salvador, CA
MSN: (e-mail address removed)
 
Back
Top