Autocomplete and Enter/TAB key navigation

2 posts, 0 answers
  1. Robert Stuczynski
    Robert Stuczynski avatar
    20 posts
    Member since:
    Jan 2008

    Posted 28 Apr 2010 Link to this post

    It is not easy to explain and I record short vidoe how it work:
    video

    I have comboboxcolumn in gridview:

    GridViewComboBoxColumn _zNrSpec = new GridViewComboBoxColumn();  
                _zNrSpec.DataSource = dbS.view_Trans_Order_StockCodes.OrderBy(o=>o.StockCode);  
                _zNrSpec.DisplayMember = "StockCode";  
                _zNrSpec.ValueMember = "StockCode";  
                _zNrSpec.FieldName = "zNrSpec";  
                _zNrSpec.Width = 90;  
                _zNrSpec.HeaderText = "Specyf";  
                _zNrSpec.AutoCompleteMode = AutoCompleteMode.SuggestAppend;  
                _zNrSpec.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;  
                radDgvPozyc.MasterGridViewTemplate.Columns.Add(_zNrSpec); 

    If I try add new value (by choice one of position in this ComboBoxColumn) I must use arrows before I press TAB. I the other case my value is not member :(
    Of course I can not use ENTER because if I do it I will not be able add vaule to another column.
    How change key TAB behavior to member my value?

    PS> Sorry I am wrong choice forum. Could you change it to correct: WinForms, Combobox?
    If something is not clear pleas ask me. 
  2. Robert Stuczynski
    Robert Stuczynski avatar
    20 posts
    Member since:
    Jan 2008

    Posted 29 Apr 2010 Link to this post

    I resolve my problem by setting:
    radDgvPozyc.EnterKeyMode = RadGridViewEnterKeyMode.EnterMovesToNextCell;  

    But I had another similar problem - I'll decribe it in another topic.
  3. DevCraft banner
Back to Top