B
Brett Romero
I have a DataTable named _filteredCriteriaTable. In the RowCollection
ItemArray are these values
_filteredCriteriaTable.rowCollection.list._items[0].ItemArray
- ItemArray {Length=4} System.Object[]
[0] "83446" string
[1] "1" string
[2] "1" string
[3] "3" string
The above match one row with four columns from the set I filled this
datatable with. Does this mean the datatable has only one row?
I then want to get only rows that match the following criteria:
_filteredCriteriaTable.DefaultView.RowFilter = "EventName = " +
this.SystemStatus + " AND SampleStatusName = " + this.SampleStatus + "
AND CycleStatusName = " + this.TrackStage;
The above parameters have these values:
this.SystemStatus = 1
this.SampleStatus = 0
this.TrackStage = 1
When I check _filteredCriteriaTable, it still has the same row as
above, which does not match. What are some of the things I could be
doing wrong here?
I then apply this to a datagrid but it remains empty:
this.Participant.DataSource = mymethod.Filter();
which contains the above code and returns a DataTable.
Thanks,
Brett
ItemArray are these values
_filteredCriteriaTable.rowCollection.list._items[0].ItemArray
- ItemArray {Length=4} System.Object[]
[0] "83446" string
[1] "1" string
[2] "1" string
[3] "3" string
The above match one row with four columns from the set I filled this
datatable with. Does this mean the datatable has only one row?
I then want to get only rows that match the following criteria:
_filteredCriteriaTable.DefaultView.RowFilter = "EventName = " +
this.SystemStatus + " AND SampleStatusName = " + this.SampleStatus + "
AND CycleStatusName = " + this.TrackStage;
The above parameters have these values:
this.SystemStatus = 1
this.SampleStatus = 0
this.TrackStage = 1
When I check _filteredCriteriaTable, it still has the same row as
above, which does not match. What are some of the things I could be
doing wrong here?
I then apply this to a datagrid but it remains empty:
this.Participant.DataSource = mymethod.Filter();
which contains the above code and returns a DataTable.
Thanks,
Brett