Home Forums WinForms controls Xceed Grid for WinForms Inherited CellRow / Cell: doesn’t always allow editing.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #12839 |

    I have created a class FilterRow, which inherits from CellRow. The cells in a FilterRow are from the type FilterCell, which inherits from Cell. I override the necessary methods and properties, and the only significant code change is in the method SetValue.
    When I add an instance of FilterRow to the FixedHeaderRows of a GridControl, the FilterRow is visible, but not all cells can be edited: only the cell whose ParentColumn’s CellEditor is a GridCheckBox can be edited.

    Imported from legacy forums. Posted by Tommy (had 2789 views)

    User (Old forums)
    Member
    Post count: 23064

    Did you ever get this to work? I am trying to do something similar?

    Thanks

    Imported from legacy forums. Posted by Steve0212 (had 264 views)

    User (Old forums)
    Member
    Post count: 23064

    Yes, I did. But I can’t remember how I did it. After looking at the code, I think it might be solved by explicitly setting the CellEditor-property of the inherited Cells to an editor, like this:<code>public class InheritedRow : CellRow
    {

    GridTextBox editor = new GridTextBox();
    protected override Cell CreateCell(Column parentColumn) {
    InheritedCell cell = new InheritedCell(parentColumn);
    cell.CellEditor = editor;
    return cell;
    }

    }</code>

    Imported from legacy forums. Posted by Tommy (had 3685 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.