hi , thanks for a prompt reply. I am editing a DataTable ,In that datatable I am having one datacolumn of datatype Datetime .so when I am setting the value DBNull.Value it's throwing null exception. I have tried with setnull method of datarow also but that method is not accessible. can you please help me out ?