Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 30th, 2006, 10:18 AM
Registered User
 
Join Date: Oct 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to bburcan
Default i need help about sarch

i want to make a search and see highlight the result
can u help me

Private Sub search_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles search.Click


        Try

            Dim view As DataView = New DataView(Dscustomers1.Customers)
            view.Sort = "CustomerID"
            Dim i As Integer = view.Find(txtbox.Text.ToString)

            If i > Dscustomers1.Customers.Rows.Count Or i < 0 Then
                MsgBox("Record Not found", MsgBoxStyle.Information, "Record Not Found")
            Else
                CM.Position = i ' Synchronizes Cm and Grid Pointer.
                Console.WriteLine(CM.Position)

            End If

        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.