Click here to Skip to main content
15,949,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: Strikethrough Font with Datagridview Control Pin
Paul Unsworth12-Nov-08 2:35
Paul Unsworth12-Nov-08 2:35 
GeneralRe: Strikethrough Font with Datagridview Control Pin
Wendelius13-Nov-08 10:36
mentorWendelius13-Nov-08 10:36 
Questionfast search Pin
duta10-Nov-08 3:42
duta10-Nov-08 3:42 
AnswerRe: fast search Pin
Christian Graus10-Nov-08 3:44
protectorChristian Graus10-Nov-08 3:44 
AnswerRe: fast search Pin
Ennis Ray Lynch, Jr.10-Nov-08 4:26
Ennis Ray Lynch, Jr.10-Nov-08 4:26 
AnswerRe: fast search Pin
Wendelius10-Nov-08 6:29
mentorWendelius10-Nov-08 6:29 
AnswerRe: fast search Pin
riced10-Nov-08 7:22
riced10-Nov-08 7:22 
AnswerRe: fast search Pin
Pete O'Hanlon10-Nov-08 11:04
mvePete O'Hanlon10-Nov-08 11:04 
One way to do this would be to split the words up into smaller chunks, and then have *pointers* to keep them together. Consider this small file:

Adrian
Andrea
Andrew
Anthony
Brian
Charles
William
Winston

This could be tokenised like this:

Ad ri an
An dr ea
ew
th on y
Br ia n
Ch ar le s
Wi ll ia m
ns to n

As you can see, the list of choices narrows quite dramatically, the further on you get, and the information becomes quite easy to traverse. In this example, the user types in A and gets a choice of 4 entries. As soon as they press n, it breaks down to 3. Pressing d narrows it down to 2, and they keep going until they get to the end (or choose one out of your selection).

The downside to this approach, is the actual splitting of the words is the time consuming part of the process, but if your solution allows you to preparse them into smaller units up front, the results can be quite dramatic.

Deja View - the feeling that you've seen this post before.

My blog | My articles | MoXAML PowerToys



GeneralRe: fast search Pin
jas0n2310-Nov-08 22:23
jas0n2310-Nov-08 22:23 
AnswerRe: fast search Pin
Mark Churchill10-Nov-08 16:01
Mark Churchill10-Nov-08 16:01 
AnswerRe: fast search Pin
N a v a n e e t h10-Nov-08 16:31
N a v a n e e t h10-Nov-08 16:31 
AnswerRe: fast search Pin
Alan Balkany11-Nov-08 4:19
Alan Balkany11-Nov-08 4:19 
QuestionReading XML Pin
Planker10-Nov-08 2:56
Planker10-Nov-08 2:56 
AnswerRe: Reading XML Pin
Wendelius10-Nov-08 6:39
mentorWendelius10-Nov-08 6:39 
GeneralRe: Reading XML Pin
Planker10-Nov-08 7:33
Planker10-Nov-08 7:33 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 7:39
mentorWendelius10-Nov-08 7:39 
GeneralRe: Reading XML Pin
Planker10-Nov-08 8:27
Planker10-Nov-08 8:27 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 8:41
mentorWendelius10-Nov-08 8:41 
GeneralRe: Reading XML Pin
Planker10-Nov-08 9:06
Planker10-Nov-08 9:06 
GeneralRe: Reading XML Pin
Wendelius10-Nov-08 9:13
mentorWendelius10-Nov-08 9:13 
QuestionLog4Net AsyncAppender Pin
fdbpro10-Nov-08 2:18
fdbpro10-Nov-08 2:18 
AnswerRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 2:54
Simon P Stevens10-Nov-08 2:54 
GeneralRe: Log4Net AsyncAppender Pin
fdbpro10-Nov-08 19:22
fdbpro10-Nov-08 19:22 
GeneralRe: Log4Net AsyncAppender Pin
Simon P Stevens10-Nov-08 21:44
Simon P Stevens10-Nov-08 21:44 
AnswerRe: Log4Net AsyncAppender Pin
Dave Kreskowiak10-Nov-08 3:51
mveDave Kreskowiak10-Nov-08 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.