Print Page | Close Window

Search as you type

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=17677
Printed Date: 15 November 2024 at 7:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Search as you type
Posted By: XiMaker
Subject: Search as you type
Date Posted: 14 December 2010 at 5:44pm
Ok, I've got a list of emails in the Report Control similar to the Report Sample provided by CodeJock that are sorted by the FROM column that I've defined.  Now I need to know how to find text in that column and move the selection to that point...  I.E.  start typing "Mark" and it goes down the list of items in the FROM column and sets the selection to the first rown that has "Mark Smith"



Replies:
Posted By: Aaron
Date Posted: 15 December 2010 at 2:33am

Hi,

Maybe something like this:
 
Dim foundItem As XtremeReportControl.ReportRecordItem
        Set foundItem = Me.wndReportControl.Rows.FindRecordItemByRows(0, Me.wndReportControl.Records.Count, 0, Me.wndReportControl.Columns.Count, 0, 0, <SearchText>, xtpReportTextSearchExactPhrase)
    If Not foundItem Is Nothing Then Me.wndReportControl.Navigator.MoveToRow foundItem.Record.Index
   


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net