arkiboys

DataView defaultView = new DataView();
//this table has three fields...
defaultView = dsCorrelationsIndices.Tables["CorrelationsIndicesValues"].DefaultView;

//one row is returned...
defaultView.RowFilter = dsCorrelationsIndices.Tables["CorrelationsIndicesValues"].Columns["Index1Name"].ColumnName + " = '" + strIndex1Name + "' AND " + dsCorrelationsIndices.Tables["CorrelationsIndicesValues"].Columns["Index2Name"].ColumnName + " = '" + strIndex1Name + "'";


I would like to get the value in the third column
//
string v = how do I get the third value from the filtered dataset

Thanks



Re: .NET Framework Data Access and Storage dataset filter

Merin Gazell

Use the DataRowView collection



Re: .NET Framework Data Access and Storage dataset filter

jasonxz

for (int x=0; x < defaultView.Count; x++)

{

string v = defaultView[x][2].ToString();

}