D
David Wender
I want to create a dataview with a sort on multiple columns. However,
when I use FindRows, I only want to search some of the columns, not
all. Is this possible? I have not been able to make it happen.
Dim objKeys(2) as Object
objKeys(0) = "CL"
objKeys(2) = 4000
Dim posView As DataView = New DataView(posDS.Tables("Positions"), _
"Trader = 'Dave'", "Commodity, Contract, Strike", _
DataViewRowState.CurrentRows)
Dim foundRows() As DataRowView = posView.FindRows(objKeys)
What I am trying to do is keep a filtered dataset (filter will not
change often) and subfilter on it.
I don't want to go through every row in the dataview and then compare
the columns with the subfilter criteria as I assume that this would be
much slower.
Thanks.
Dave.
when I use FindRows, I only want to search some of the columns, not
all. Is this possible? I have not been able to make it happen.
Dim objKeys(2) as Object
objKeys(0) = "CL"
objKeys(2) = 4000
Dim posView As DataView = New DataView(posDS.Tables("Positions"), _
"Trader = 'Dave'", "Commodity, Contract, Strike", _
DataViewRowState.CurrentRows)
Dim foundRows() As DataRowView = posView.FindRows(objKeys)
What I am trying to do is keep a filtered dataset (filter will not
change often) and subfilter on it.
I don't want to go through every row in the dataview and then compare
the columns with the subfilter criteria as I assume that this would be
much slower.
Thanks.
Dave.