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?
ADAdministrator Syncfusion Team October 4, 2004 05: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.
AGAlbert GaoOctober 4, 2004 06: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?
>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.
ADAdministrator Syncfusion Team October 4, 2004 06: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.