Filtering in ASP.NET

Results 1 to 2 of 2

Thread: Filtering in ASP.NET

  1. #1
    Join Date
    Dec 1969

    Default Filtering in ASP.NET

    I have a table that I want to filter, but I can&#039;t figure out how. <BR><BR>This is what I&#039;d do in ASP:<BR>rsTransactions.Filter = "TransactionID=2"<BR><BR>Here is what I&#039;m trying in C#:<BR>objDataSet.Tables["Transactions"].Select("TransactionID=2");<BR><BR>But when I loop through the items in the table I still get all of them, not a filtered set.<BR><BR>Any suggestions?

  2. #2
    Join Date
    Dec 1969

    Default RE: Filtering in ASP.NET

    Use a DataView...<BR><BR>Dim MyView As New DataView = MyTable.DefaultView<BR>MyView.RowFilter = "TransactionID=2"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts