Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with using enum in C# interface Pin
Pete O'Hanlon4-Jan-07 3:47
mvePete O'Hanlon4-Jan-07 3:47 
GeneralRe: Problem with using enum in C# interface Pin
Dan Neely4-Jan-07 4:20
Dan Neely4-Jan-07 4:20 
GeneralRe: Problem with using enum in C# interface Pin
quiteSmart4-Jan-07 2:18
quiteSmart4-Jan-07 2:18 
QuestionDeleting nodes recursivily Pin
Gareth H3-Jan-07 23:55
Gareth H3-Jan-07 23:55 
AnswerRe: Deleting nodes recursivily Pin
Pete O'Hanlon4-Jan-07 1:46
mvePete O'Hanlon4-Jan-07 1:46 
GeneralRe: Deleting nodes recursivily Pin
Gareth H4-Jan-07 2:56
Gareth H4-Jan-07 2:56 
QuestionDataGridView that searches like outlook Pin
robmays3-Jan-07 23:50
robmays3-Jan-07 23:50 
AnswerRe: DataGridView that searches like outlook Pin
Nader Elshehabi4-Jan-07 0:30
Nader Elshehabi4-Jan-07 0:30 
robmays wrote:
If not is there one can buy that will do the same?

Wow! You go for the cash pretty quickly!!Smile | :)

Even though DataGridView doesn't support this feature natively, you can make it by two simple steps:
1- Change the DataGridView.EditMode to EditOnEnter for example -ie. Anything that doesn't include KeyStroke-.
2- Handle the DataGridView.KeyPress event -or any other key event-, and put the code that goes through the rows -using a foreach loop- to check your desired column if it starts with the specific key the user entered.

PS.
You can add the feature of supporting two-or three strokes search -like the windows explorer. ie. searching for "sam" not just "s"-, by storing the keystrokes in a temp string and clear that string after a small timer elapse to start over a new search if the user presses a key.

RegardsRose | [Rose]

GeneralRe: DataGridView that searches like outlook Pin
robmays4-Jan-07 0:36
robmays4-Jan-07 0:36 
GeneralRe: DataGridView that searches like outlook Pin
Nader Elshehabi4-Jan-07 1:40
Nader Elshehabi4-Jan-07 1:40 
QuestionBest way of Data Sync Pin
fearless stallion3-Jan-07 23:46
fearless stallion3-Jan-07 23:46 
AnswerRe: Best way of Data Sync Pin
Nader Elshehabi4-Jan-07 0:22
Nader Elshehabi4-Jan-07 0:22 
GeneralRe: Best way of Data Sync Pin
fearless stallion4-Jan-07 1:59
fearless stallion4-Jan-07 1:59 
GeneralRe: Best way of Data Sync Pin
Nader Elshehabi4-Jan-07 3:36
Nader Elshehabi4-Jan-07 3:36 
GeneralRe: Best way of Data Sync Pin
fearless stallion4-Jan-07 20:44
fearless stallion4-Jan-07 20:44 
GeneralRe: Best way of Data Sync Pin
Nader Elshehabi4-Jan-07 21:54
Nader Elshehabi4-Jan-07 21:54 
AnswerRe: Best way of Data Sync Pin
Pete O'Hanlon4-Jan-07 1:59
mvePete O'Hanlon4-Jan-07 1:59 
GeneralRe: Best way of Data Sync Pin
fearless stallion4-Jan-07 2:01
fearless stallion4-Jan-07 2:01 
GeneralRe: Best way of Data Sync Pin
Pete O'Hanlon4-Jan-07 2:35
mvePete O'Hanlon4-Jan-07 2:35 
GeneralRe: Best way of Data Sync Pin
fearless stallion4-Jan-07 3:04
fearless stallion4-Jan-07 3:04 
GeneralRe: Best way of Data Sync Pin
Pete O'Hanlon4-Jan-07 3:49
mvePete O'Hanlon4-Jan-07 3:49 
Questiondatatable Pin
fmardani3-Jan-07 23:44
fmardani3-Jan-07 23:44 
AnswerRe: datatable Pin
robmays3-Jan-07 23:54
robmays3-Jan-07 23:54 
AnswerRe: datatable [modified] Pin
Nader Elshehabi4-Jan-07 0:49
Nader Elshehabi4-Jan-07 0:49 
QuestionHow to add a form in a dockpanel Pin
GunaChinna3-Jan-07 22:51
GunaChinna3-Jan-07 22: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.