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.
Syncfusion Feedback

Change the cell type dynamically in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 10:50 AM UTC

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 11:11 AM UTC

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 11:48 AM UTC

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.

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

;