This example demonstrates how to use custom editors for in-place editing of cell content. Both predefined editors supported by the SpreadsheetControl for in-place editing (ComboBoxEdit, DateEdit, and CheckEdit) and the custom editor (SpinEdit) are used to edit cells located in the specific columns of a worksheet table.
To assign an in-place editor of a predefined type to a specific cell range in a worksheet, use the Add method of the CustomCellInplaceEditorCollection collection, which stores the custom cell editors specified in a worksheet.
To assign your own custom editor to a cell, handle the SpreadsheetControl.CustomCellEdit event. This event fires when a user is about to start editing a cell and allows you to supply a custom in-place editor to the edited cell by setting a corresponding RepositoryItem descendant to the event's RepositoryItem parameter.
Added By: Tom Talty at: 6/27/2016 10:54:20 AM Errors when trying to do: worksheet["Table[ColName]"];
Getting invalid operation exception Added By: Oleg (DevExpress Support) at: 6/27/2016 12:39:18 PM
To assign an in-place editor of a predefined type to a specific cell range in a worksheet, use the Add method of the CustomCellInplaceEditorCollection collection, which stores the custom cell editors specified in a worksheet.
To assign your own custom editor to a cell, handle the SpreadsheetControl.CustomCellEdit event. This event fires when a user is about to start editing a cell and allows you to supply a custom in-place editor to the edited cell by setting a corresponding RepositoryItem descendant to the event's RepositoryItem parameter.
Question Comments
Added By: Tom Talty at: 6/27/2016 10:54:20 AM Errors when trying to do: worksheet["Table[ColName]"];
Getting invalid operation exception Added By: Oleg (DevExpress Support) at: 6/27/2016 12:39:18 PM
Hello Tom,
To better process your inquiry I've created a separate ticket on your behalf (T396974: Accessing a table's column by ColumnID throws the InvalidOperationException).
It has been placed in our processing queue and will be answered shortly.