Click here to Skip to main content
15,920,468 members
Home / Discussions / C#
   

C#

 
AnswerRe: To find if an excel file has got VBA code in it irrespective of the version of excel(it can be any version of excel) Pin
Alaric_4-Aug-08 8:53
professionalAlaric_4-Aug-08 8:53 
Questionchange datagridview column name Pin
benjamin yap4-Aug-08 5:50
benjamin yap4-Aug-08 5:50 
AnswerRe: change datagridview column name Pin
Gulfraz Khan4-Aug-08 6:06
Gulfraz Khan4-Aug-08 6:06 
GeneralRe: change datagridview column name Pin
nelsonpaixao4-Aug-08 12:53
nelsonpaixao4-Aug-08 12:53 
GeneralRe: change datagridview column name Pin
benjamin yap4-Aug-08 16:37
benjamin yap4-Aug-08 16:37 
QuestionFancy search function Pin
Dewald4-Aug-08 5:01
Dewald4-Aug-08 5:01 
AnswerRe: Fancy search function Pin
Gulfraz Khan4-Aug-08 5:13
Gulfraz Khan4-Aug-08 5:13 
AnswerRe: Fancy search function Pin
Guffa4-Aug-08 7:05
Guffa4-Aug-08 7:05 
Dewald wrote:
The problem is that the grid can have several thousand entries and a foreach search might take much too long.


Why do you think so? Have you tried it?

I have a project with a ListView showing an event log where I filter the rows. I changed the filter to look for part of a string (in a rather inefficient way; creating temporary strings for each item), but with 90000 items the time for searching them all is still hardly noticable.

Your only alternatives to looping the data when the user enters the string, is to do the searching beforehand by setting up some kind of tree, where you can find all items containing the character "a", then among those items all items that contain "ab", et.c. It would perhaps take a few seconds to search through all the data, but then it would be fast to find the items in the tree.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Fancy search function Pin
Guffa4-Aug-08 10:21
Guffa4-Aug-08 10:21 
GeneralRe: Fancy search function Pin
DaveyM694-Aug-08 10:34
professionalDaveyM694-Aug-08 10:34 
GeneralRe: Fancy search function Pin
Dewald4-Aug-08 20:19
Dewald4-Aug-08 20:19 
AnswerRe: Fancy search function Pin
nelsonpaixao4-Aug-08 12:58
nelsonpaixao4-Aug-08 12:58 
QuestionHow do I make a formless windows application? Pin
I_Need_Help4-Aug-08 4:50
I_Need_Help4-Aug-08 4:50 
AnswerRe: How do I make a formless windows application? Pin
Gulfraz Khan4-Aug-08 4:58
Gulfraz Khan4-Aug-08 4:58 
AnswerRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 5:31
vikas amin4-Aug-08 5:31 
GeneralRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 7:16
vikas amin4-Aug-08 7:16 
Questiongetting result from the cmd prompt Pin
lune124-Aug-08 4:44
lune124-Aug-08 4:44 
AnswerRe: getting result from the cmd prompt [modified] Pin
vikas amin4-Aug-08 5:41
vikas amin4-Aug-08 5:41 
AnswerRe: getting result from the cmd prompt Pin
smilethat4-Aug-08 6:45
smilethat4-Aug-08 6:45 
GeneralRe: getting result from the cmd prompt Pin
lune125-Aug-08 20:58
lune125-Aug-08 20:58 
QuestionData entry validation and databinding Pin
Gulfraz Khan4-Aug-08 4:20
Gulfraz Khan4-Aug-08 4:20 
QuestionLoad Report Failed Pin
Er.bRijal4-Aug-08 3:49
Er.bRijal4-Aug-08 3:49 
QuestionRe: Load Report Failed Pin
selcuks4-Aug-08 4:43
selcuks4-Aug-08 4:43 
QuestionPass Paramters from Popup to page Pin
Agweet4-Aug-08 3:45
Agweet4-Aug-08 3:45 
AnswerRe: Pass Paramters from Popup to page Pin
Alaric_4-Aug-08 3:57
professionalAlaric_4-Aug-08 3:57 

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.