You're not modifying the new row in this manner are you: newRow.ItemArray[n] = "Some value";
If you are, that won't work (as you've found). The new row's ItemArray property should be set to an object[] reference like this: // assuming 2 columns of type string object[] rowProps = new object[2]; rowProps[0] = "Fuzzy Green Slippers"; rowProps[1] = "Tyco"; newRow.ItemArray = rowProps; Seang -----Original Message----- From: MSTSE Developer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:36 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] howto set object to empty? > Perhaps you could use System.Reflection.Missing? something like that it must be! but setting to missing or just to null does not work. when i set one value in the datarow to null or missing i get an exception which tells me that i have to use dbnull! but when i try to put null direct into the itemarray nothing happend! no exceptions! no changes! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.