Normally, a row in a table of a typed data set has a IsXYZNull()
method for every nullable column. Have you tried
bool a = accountFilter.IsCurrency_IDNull();
This, however, only works if accountFilter
is not of type DataRow
but of the specialized data row type from your typed data set.
For example: If you have a typed data set which contains a table named Test
, there would be a specialized table class TestTable
and a specialized data row class named TestTableRow
. If the Test
table contained a nullable field TestField
, the TestTableRow
class would contain a method IsTestFieldNull()
, so you could call
bool isnull = testTable[0].IsTestFieldNull();
to determine whether the TestField
field in the first row of the TestTable testTable
was null
.
Note that the following does not work, as the result is not of type TestTableRow
but of type DataRow
, so you'd have to cast this to TestTableRow
:
bool isnull = testTable.Rows[0].IsTestFieldNull(); // Won't compile
bool isnull = ((TestTableRow)testTable.Rows[0]).IsTestFieldNull(); // Will compile because of cast