I have a DataRow object I'm using where the first field is a ColumnObject. I test to make sure the ColumnObject is not null as follows:
if (dataRow[ColumnObject] == null)
fieldString.Append("".PadRight(ColumnWidth, ' '));
What's happening is that I get an error in my catch block telling me that "ColumnObject" can't be null. But that's exactly what I'm testing for. What am I missing?