combobox dropdown on editmodestarting event

Posted by: daniel-ocallaghan7 on 8 September 2017, 1:11 pm EST

  • Posted 8 September 2017, 1:11 pm EST

    <P>Hey everyone,</P>
    <P>Basically, my comboboxcelltype has autocompletemode setup on it. The functionality I would like, if for the combobox to dropdown as the user begins editing. So if a user types f, the combobox would drop down. I can't seem to get that to happen though. I am guessing it is a quick solution to implement and I look like a fool for having to ask. Thanks for your help.</P>
    <P>-Dan</P>
  • Replied 8 September 2017, 1:11 pm EST

    Dan -<br><br>By default, the drop down will not display when using AutoComplete.  See if this post helps you out...<br><br>http://www.clubfarpoint.com/Forums/forums/thread/52747.aspx<br>
  • Replied 8 September 2017, 1:11 pm EST

    <P>That thread you posted was very helpful. Thank you very much. In the editmodeon event, I used the following piece of code:</P><FONT size=2>
    <P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2>(DefinitionGridView.ActiveCell.CellType.GetType() == </FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#2b91af size=2>ComboBoxCellType</FONT><FONT size=2>)</FONT><FONT size=2>)</FONT></P>
    <P><FONT size=2>         ((FarPoint.Win.</FONT><FONT color=#2b91af size=2>FpCombo</FONT><FONT size=2>)GridView.EditingControl).DroppedDown = </FONT><FONT color=#0000ff size=2>true</FONT><FONT size=2>;</FONT></P>
    <P><FONT size=2> </P></FONT>
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels