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

CellClick Event Handler and Enabled Property

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!!

1 Reply

AD Administrator Syncfusion Team May 19, 2005 12: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

Loader.
Live Chat Icon For mobile
Up arrow icon