M
Matt
Scenario:
A dataset exists with a number of columns in it. I want to add a new column
that will divide ColA by ColB.
How I've accomplished this is pretty simple, simply create an instance of
DataColumn, and set the .Expression property to ColA / ColB.
The problem is when I get to a row where ColB is 0, a divide by zero error
occurs. This seems like it should be something so common that it would be
heavily documented and such as to how to handle, but can't find anything.
A dataset exists with a number of columns in it. I want to add a new column
that will divide ColA by ColB.
How I've accomplished this is pretty simple, simply create an instance of
DataColumn, and set the .Expression property to ColA / ColB.
The problem is when I get to a row where ColB is 0, a divide by zero error
occurs. This seems like it should be something so common that it would be
heavily documented and such as to how to handle, but can't find anything.