----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: vijaykishan Message 1 in Discussion Hi , [VB.Net/Windows Application] I need search functionality on a grid containing lists of products . 2 textboxes will be provided one for entering product code and other for description. How it should work : if i type "A" in code textbox , the first product code that starts with "A" should be selected. if i type "AM" in code textbox , the first product code that starts with "AM" should be selected. I have done this by looping the grid rows and by checking whether that row value starts with value in the code textbox. Problem is performance when i check with 5000 records. [Code] pvsearchkey -> value entered in code textbox For i = 0 To 5000 If DataGrid1.Item(i, 0).ToString.StartsWith(pvsearchkey) Then DataGrid1.Select(i) Exit For End If Next [/Code] ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
