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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toggle checkbox state with space bar

Thread ID:





7714 Oct 7,2003 01:24 PM UTC Oct 7,2003 04:05 PM UTC WinForms 2
Tags: GridControl
Asked On October 7, 2003 01:24 PM UTC

Hi, I am using checkbox in one column of the grid. It is enabled, TriState is set to false and ThemesEnabled is set to true. It runs fine and checkbox looks like XP style since I created a manifest file. However, when the checkbox is active I can only change its state by clicking on it. Press space bar does not toggle the state. Did I forget to set something. Here is part of the code: this.gridControl1[1,1].CellValue = false; this.gridControl1[1,1].CellType = "CheckBox"; this.gridControl1[1,1].TriState = false; this.gridControl1[1,1].Enabled = true; Thanks! James

Administrator [Syncfusion]
Replied On October 7, 2003 03:12 PM UTC

This sounds odd. You should be able to change its state with the keyboard. Is an exception thrown anywhere? Check out also the CheckBoxOptions. Are they setup correctly? What if you change .CellValue = false; to .CellValue = "0"? Stefan

Replied On October 7, 2003 04:05 PM UTC

Found the problem. It was caused by my CurrentCellKeyPress event handler. Sorry about that.


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