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.

CellClick Event Handler and Enabled Property

Thread ID:

Created:

Updated:

Platform:

Replies:

29223 May 19,2005 10:01 AM May 19,2005 01:59 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 19, 2005 10:01 AM

Hi, I have the Enabled property of certain cells set to False. What I want to achieve is when a click is registered on any of these ''disabled'' cells, a message is shown on the status bar. In the CellClick event handler, I do the following: if (!grid[e.RowIndex, e.ColIndex].Enabled) { // take action } What i see is the Enabled property is always true even though actually it is set to false. (I am setting it to false in the PrepareViewStyleInfo event handler). What may I be doing wrong here? Thanks a lot for your support!!

Administrator [Syncfusion]
Replied On May 19, 2005 01:59 PM

You need to use grid.Model.QueryCellInfo to set a property like Enabled. See this KB for ReadOnly, but Enabled is similar. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=95

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.

;