Cell selection disappears

Posted by: dannybuy01 on 9 September 2017, 8:30 am EST

  • Posted 9 September 2017, 8:30 am EST

    If I select a cell in FlexGrid and move down with the keyboard keys e.g. key down everything is fine, until I reach the last data row and move down one row again then the selected cell disappears. Move upward don’t bring it back. This behavior only exists if the option “show new record” from FlexGrid was enabled. Hope there is a fix soon to enhance the user experience.


  • Replied 9 September 2017, 8:30 am EST

    Hello Danny,

    Can you please try the given code snippet and see if this resolves your issue.

    partial void FlexibleContactsGrid_Created()
    // Write your code here.
    var flex = this.FindControl("BookIssueds");
    flex.ControlAvailable += flex_ControlAvailable;

    C1.Silverlight.FlexGrid.C1FlexGrid _flex;

    void flex_ControlAvailable(object sender, ControlAvailableEventArgs e)
    _flex = e.Control as C1.Silverlight.FlexGrid.C1FlexGrid;
    _flex.PreviewKeyDown += _flex_PreviewKeyDown;

    void _flex_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e)
    if (_flex.CollectionView.CurrentPosition == -1)
    if (e.Key == System.Windows.Input.Key.Up)
    e.Handled = true;

    Let me know if you need any further assistance.

Need extra support?

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

Learn More

Forum Channels