Set column to null
From: Eric V (anonymous_at_discussions.microsoft.com)
Date: 03/02/04
- Next message: SB: "Re: Data Relations and Ill pay someone now"
- Previous message: Merlin: "Data Relations and Ill pay someone now"
- Next in thread: SB: "Re: Set column to null"
- Reply: SB: "Re: Set column to null"
- Reply: Jon Skeet [C# MVP]: "Re: Set column to null"
- Reply: Miha Markic [MVP C#]: "Re: Set column to null"
- Reply: Tu-Thach: "RE: Set column to null"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Mar 2004 11:21:05 -0800
how do i set a column to null in a datatable? i tried this:
foreach(DataRow row in myTable.Rows)
{
row["myColumn"]=null;
}
but it fails. myColumn is a Long type. i know it can accept nulls because i get some nulls from the database.
thanks
- Next message: SB: "Re: Data Relations and Ill pay someone now"
- Previous message: Merlin: "Data Relations and Ill pay someone now"
- Next in thread: SB: "Re: Set column to null"
- Reply: SB: "Re: Set column to null"
- Reply: Jon Skeet [C# MVP]: "Re: Set column to null"
- Reply: Miha Markic [MVP C#]: "Re: Set column to null"
- Reply: Tu-Thach: "RE: Set column to null"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|