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

disable cell in grid

Thread ID:





12520 Apr 1,2004 12:55 PM UTC Apr 1,2004 01:56 PM UTC WinForms 1
Tags: GridControl
Susie Smith
Asked On April 1, 2004 12:55 PM UTC

How do I disable a cell in a grid with a combo box in it?

Administrator [Syncfusion]
Replied On April 1, 2004 01:56 PM UTC

If you don''t want it clickable, you can set gridControl1[rowIndex, 3].Clickable = false; If you don''t want it enabled, you can set gridControl1[rowIndex, 3].Enabled = false; There is also a ShowButtons style property that allows you to hide the button, and there is a ReadOnly that would make the cell ReadOnly. You can see these properties in action in the Grid\Samples\CellTypes\ComboboxCells sample. If it is a GridDataBoundGrid, you cannot explicitly set such properties on a cell by cell basis. (You can set them for the whole column using GridBoundColUmn.StyleInfo fo the column.) If you need to do it on a cell by cell basis, you will have to use PrepareViewStyleInfo as shown in this KB, http://www.syncfusion.com/Support/article.aspx?id=560.


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