P
Piotr Zbyszynski
Hi all,
I'm adding a DataColumn to my DataTable with a given expression:
"column1/column2". But sometimes it occurs that in some rows, value of
column2 is 0. Then while adding my expression column, program throws
DivisionByZeroException.
I would like to handle this exception in a way, that if division by 0
occurs, Iwould like to set expression columns to 0. How should I do it?
Any advice would by very appreciated.
I'm adding a DataColumn to my DataTable with a given expression:
"column1/column2". But sometimes it occurs that in some rows, value of
column2 is 0. Then while adding my expression column, program throws
DivisionByZeroException.
I would like to handle this exception in a way, that if division by 0
occurs, Iwould like to set expression columns to 0. How should I do it?
Any advice would by very appreciated.