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.

Change the cell type dynamically in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

19762 Oct 4,2004 06:18 AM Oct 4,2004 07:48 AM Windows Forms 3
loading
Tags: GridControl
Albert Gao
Asked On October 4, 2004 06:18 AM

In my application, it is asked that editing should be enabled only when explicitly requested - such as double click, or context menu. In my table cell double click handler, I changed the Style Info, I didn''t find that anything changed. I follow the sample code provided for GridControl. Anything specially I should take care for GridGroupingControl? Thanks, albert

Administrator [Syncfusion]
Replied On October 4, 2004 06:50 AM

You cannot set explicit cell styles as you might in a GridControl. But I think you can do this using TableControlCurrentCellStartEditing and the DoubleClick event. Here is a little sample. GGCReadOnly_7805.zip

Albert Gao
Replied On October 4, 2004 07:11 AM

Thank you Clay. It is nice to know the way to toggle readonly attribute. I do need the ability to change the cell style from TextBox to ComboBox. Is there a way to achieve this? Thanks, Albert >You cannot set explicit cell styles as you might in a GridControl. > >But I think you can do this using TableControlCurrentCellStartEditing and the DoubleClick event. Here is a little sample. > >GGCReadOnly_7805.zip > >

Administrator [Syncfusion]
Replied On October 4, 2004 07:48 AM

If you want to do it on a cell by cell basis (as opposed to changing it for all cells in a column), then you will have to handle QueryCellStypeInfo and set the e.Style properties there. Here is a forum thread that shows how you can see what cell you are on in QueryCellStyleInfo. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=16364

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.

;