Filtering Values In A DataColumn

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";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top