Filtering Values In A DataColumn

  • Thread starter Thread starter Neil
  • Start date Start date
N

Neil

Hi,

I have a table which contains a column called iVolume,
which contains positive and negative integers. I want to
get hold of the column iVolume and pass it to a method,
however I only want the positive values in my DataColumn.

I thought I would be able to accomplish this with the
Expression property but I get the following error:

"Cannot set Expression property due to circular reference
in the expression"....

I'm not sure what is going on but my code looks like
below, does anyone have any idea what I'm doing wrong?

DataColumn datacoumnValues = refDataset.Tables
[TableName].Columns["iVolume"];

datacoumnValues.Expression = "iVolume > 0";
 
Back
Top