Click here to Skip to main content
15,921,989 members
Home / Discussions / C#
   

C#

 
Questionloop break on KeyDown [modified] Pin
erfi14-Jul-08 5:21
erfi14-Jul-08 5:21 
AnswerRe: loop break on KeyDown Pin
Harvey Saayman14-Jul-08 5:25
Harvey Saayman14-Jul-08 5:25 
AnswerRe: loop break on KeyDown Pin
paas14-Jul-08 6:44
paas14-Jul-08 6:44 
AnswerRe: loop break on KeyDown Pin
Frank Horn14-Jul-08 8:08
Frank Horn14-Jul-08 8:08 
QuestionQuick search with datagrid & textbox! Pin
Yosh_14-Jul-08 5:03
professionalYosh_14-Jul-08 5:03 
AnswerRe: Quick search with datagrid & textbox! Pin
paas14-Jul-08 6:49
paas14-Jul-08 6:49 
GeneralRe: Quick search with datagrid & textbox! Pin
Yosh_17-Jul-08 6:47
professionalYosh_17-Jul-08 6:47 
GeneralRe: Quick search with datagrid & textbox! Pin
paas18-Jul-08 2:59
paas18-Jul-08 2:59 
If it was me, I would probably refresh the grid after the text box entry is validated (e.g., on the Validated event of the text box). If you have a need to refresh the grid as each character is entered in the text box, then you can do it on the TextChanged event of the text box. That seems like a bit much to me, but I don't entirely know what you are trying to accomplish.

In either case, your code might look something like the following where oDataView is your DataView, LookupField is the data bound field you are searching on, textBox is your text box and DataGrid1 is your grid...

oDataView.RowFilter = "LookupField = '" + textBox.Text + "'";
DataGrid1.DataSource = oDataView;

QuestionStarting explorer Pin
ajtunbridge14-Jul-08 4:52
ajtunbridge14-Jul-08 4:52 
AnswerRe: Starting explorer Pin
DaveyM6914-Jul-08 5:19
professionalDaveyM6914-Jul-08 5:19 
AnswerRe: Starting explorer Pin
TheFM23414-Jul-08 6:58
TheFM23414-Jul-08 6:58 
GeneralRe: Starting explorer Pin
ajtunbridge14-Jul-08 8:49
ajtunbridge14-Jul-08 8:49 
QuestionDecimal symbol in Regional settings [modified] Pin
serega2007us14-Jul-08 4:13
serega2007us14-Jul-08 4:13 
AnswerRe: Decimal symbol in Regional settings Pin
DaveyM6914-Jul-08 4:31
professionalDaveyM6914-Jul-08 4:31 
GeneralRe: Decimal symbol in Regional settings Pin
serega2007us14-Jul-08 4:40
serega2007us14-Jul-08 4:40 
QuestionMemory Exception while saving an image Pin
DeepOceans14-Jul-08 3:59
DeepOceans14-Jul-08 3:59 
AnswerRe: Memory Exception while saving an image Pin
Alan Balkany14-Jul-08 4:03
Alan Balkany14-Jul-08 4:03 
QuestionGetting command line params in a windows forms app Pin
GreatBarrier8614-Jul-08 3:45
GreatBarrier8614-Jul-08 3:45 
AnswerRe: Getting command line params in a windows forms app Pin
Harvey Saayman14-Jul-08 3:52
Harvey Saayman14-Jul-08 3:52 
GeneralRe: Getting command line params in a windows forms app Pin
GreatBarrier8614-Jul-08 3:53
GreatBarrier8614-Jul-08 3:53 
GeneralRe: Getting command line params in a windows forms app Pin
Harvey Saayman14-Jul-08 4:01
Harvey Saayman14-Jul-08 4:01 
GeneralRe: Getting command line params in a windows forms app Pin
GreatBarrier8614-Jul-08 4:03
GreatBarrier8614-Jul-08 4:03 
AnswerRe: Getting command line params in a windows forms app Pin
Harvey Saayman14-Jul-08 5:04
Harvey Saayman14-Jul-08 5:04 
AnswerRe: Getting command line params in a windows forms app Pin
leppie14-Jul-08 4:03
leppie14-Jul-08 4:03 
AnswerRe: Getting command line params in a windows forms app Pin
Giorgi Dalakishvili14-Jul-08 4:08
mentorGiorgi Dalakishvili14-Jul-08 4:08 

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.