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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Spacebar and editing

Thread ID:





13930 May 13,2004 02:44 PM UTC May 13,2004 04:18 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On May 13, 2004 02:44 PM UTC

This should be simple.. I want to override the "spacebar" behavior. Currently the spacebar begins editing a cell. I want to occasionally prevent this. Is there and event the I can return e.cancel = true when I want to prevent editing? Thanks

Administrator [Syncfusion]
Replied On May 13, 2004 02:59 PM UTC

I would try CurrentCellKeyPress. You could also probably use CurrentCellStartEditing.
private void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
	if(e.KeyChar == '' '' && !this.gridControl1.CurrentCell.IsEditing)
	    e.Handled = true;

Administrator [Syncfusion]
Replied On May 13, 2004 04:18 PM UTC



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon