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.

disable cell in grid

Thread ID:

Created:

Updated:

Platform:

Replies:

12520 Apr 1,2004 07:55 AM Apr 1,2004 08:56 AM Windows Forms 1
loading
Tags: GridControl
Susie Smith
Asked On April 1, 2004 07:55 AM

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

Administrator [Syncfusion]
Replied On April 1, 2004 08:56 AM

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.

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.

;