Results 1 to 2 of 2

Thread: Filter in VB.NET

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Pilipinas
    Posts
    441

    Filter in VB.NET

    How do Filter works in VB.NET?
    Using VB6, this code works;
    Adodc1.Recordset.Filter="EmployeeID='"& txtNo.Text & "'"

    Using VB.NET, this code doesn't work;
    Dataset11.Employee.Rows.Filter="EmployeeID='"& txtNo.Text & "'"

    Kindly help me..

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Use a DataView, something like this.

    Dim dv as DataView = Dataset11.Employee.DefaultView

    dv.RowFilter = ........

Posting Permissions

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



Click Here to Expand Forum to Full Width