Home > Net >  DEV focus of how to set the gridlookupedit display drop-down menu by default the first line of a dro
DEV focus of how to set the gridlookupedit display drop-down menu by default the first line of a dro

Time:10-02



How to set up in the input text, pop-up menu bar the first act of the default focus, need not press the keyboard up and down keys to select?

CodePudding user response:

You are losing a character is automatically query, or need button, return to perform query operations?
Overall is actually the same, it is a query is completed, help after, table/grid selectedIndex is set to 0,

CodePudding user response:

Focus can only have one, you can write the first enter the default choice, if you focus on the Grid, you can't continue to input text box

CodePudding user response:

Pop-up drop-down box, selected by default the first line (need to add KeyUp event to the GridLookUpEdit View)
Private void gridView1_KeyUp (object sender, KeyEventArgs e)
{
If (e.K eyCode!=Keys. The Up & amp; & E.K eyCode!=Keys. Down)
{
GridView1. FocusedRowHandle=0;
}
}
  •  Tags:  
  • C#
  • Related