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

Conditional disabling of rows in a Grid Data Bound Grid

Thread ID:





22175 Dec 6,2004 11:47 AM UTC Dec 6,2004 12:01 PM UTC WinForms 1
Tags: GridControl
Asked On December 6, 2004 11:47 AM UTC

Hi , We are using Sync Fusion 1.6 dlls in our application . We are using GridDataBoundGrid. We are displaying a drop down as one of the columns. Depending on one of the parameters being displayed , we need to prevent the drop down for that particular row to be edited , ie , can you explain us how to implement conditional disabling of rows in a grid data bound grid. Your help will be very valuable to us. Thanks and Regards, Jaya

Administrator [Syncfusion]
Replied On December 6, 2004 12:01 PM UTC

Try handling the grid.Model.QueryCellInfo event. In your handler, if e.RowIndex and e.ColIndex point to a cell that you may want to disable, then check the criteria you are using, and then conditionally set e.Style.Enable = true or false based on this criteria. (If you need the value for the cell at e.RowIndex, e.COlIndex, then get it from e.Style.CellValue. If you need values for other cells, then you can get them using an indexer on the grid.)


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