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.

Home Key like Excel .

Thread ID:

Created:

Updated:

Platform:

Replies:

37909 Dec 1,2005 05:56 PM Dec 2,2005 07:24 AM Windows Forms 3
loading
Tags: GridControl
Adam K.
Asked On December 1, 2005 05:56 PM

Does syncfusion support the same shortcut keys as excel. For example: HOME key - goes to the beginning of the row. Or do i have to code these all up seperately myself on keypress events, etc . . thks, ak

Administrator [Syncfusion]
Replied On December 1, 2005 07:50 PM

ctl+left moves to the left-most column, ctl+right goes to the right-most, ctl+up goes up, ctl+down goes down, ctl+home gors top-left and ctl+end goes bottom-right.

Adam K.
Replied On December 2, 2005 07:14 AM

but not the home key ?? >ctl+left moves to the left-most column, ctl+right goes to the right-most, ctl+up goes up, ctl+down goes down, ctl+home gors top-left and ctl+end goes bottom-right.

Administrator [Syncfusion]
Replied On December 2, 2005 07:24 AM

No. ctl+left does what you said Home did. If you want Home to go to the left, then you will have to code this.
private void gridControl1_CurrentCellKeyDown(object sender, KeyEventArgs e)
{
	this.lastKeyDown = e.KeyCode;
	if(e.KeyCode == Keys.Home && Control.ModifierKeys == Keys.None)
	{
		GridCurrentCell cc = this.gridControl1.CurrentCell;
		cc.MoveTo(cc.RowIndex, this.gridControl1.Model.Rows.HeaderCount + 1);
	}
}

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.

;