We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How do I Give a Custom GridStaticCellRenderer's Control Focus When a User Presses CTRL + ALT + DOWN?

Thread ID:

Created:

Updated:

Platform:

Replies:

108608 May 1,2013 04:15 PM May 9,2013 12:18 AM Windows Forms 1
loading
Tags: FAQ
Matthew Edwards
Asked On May 1, 2013 04:15 PM

How do I give focus to a child control when a user presses CTRL + ALT + DOWN to expand a GGC cell's dropdown?  The default cell models appear to do this automatically, so that when a dropdown appears the user can use the up, down and enter key to select items in a list.  I'd like my custom downdown to do the same thing.

If it matters, my custom cell control is really just a CheckedListBox, and I want the user to be able to check items without every having to use the mouse.

Vinish Kumar K [Syncfusion]
Replied On May 9, 2013 12:18 AM

Hi Matthew,

 

Thank you for your interest in Syncfusion products.

We have analyzed your query. If you want to set the custom dropdown when the we press the keys CTRL + ALT + DOWN. Based on the architecture of grid the we can handle the issue by override the method onKeyDown or OnkeyPress events. You can handle this in your custom celltype class.

 protected override void OnKeyDown(KeyEventArgs e)

        {

            base.OnKeyDown(e);


            if (e.KeyCode == Keys.Up )

            {

                this.OnButtonClicked(this._rowIndex, this._colIndex, 0);

                e.Handled = true;

            }

            else if (e.KeyCode == Keys.Down)

            {

                this.OnButtonClicked(this._rowIndex, this._colIndex, 1);

                e.Handled = true;

            }

        }

      

Please customize your application based on this method. Still you have faced the same issue in your end. Please provide any sample to provide proper response. We will update you with the proper response without any further delay.

 

Regards,

Vinish.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;