Welcome to the Xceed Community | Help
Community Search  
More Search Options

Date editor and Text viewer in cell

Sort Posts: Previous Next
  •  03-09-2010, 2:56 AM Post no. 26034

    Date editor and Text viewer in cell

    I'm trying to incorporate a standard Xceed DateEditor in a cell, but with the provision that the cell also be able to display non date information (the cell may need to display dates from multiple objects, which may not match >> want to display *Varies* in these circumstances). I've had some success with the CellViewManager set to a TextViewer but it's not quite working. As a first question, is this the recommended approach for accomplishing this, or should I be trying a different approach? TIA
  •  03-09-2010, 2:34 PM Post no. 26039 in reply to 26034

    Re: Date editor and Text viewer in cell

     

    Hi Neil,

    To display multiple visual objects for a given cell, you have two options: one is to implement a UserControl that would contain the various objects. This would be user to code. The second option is to derive from the CellViewerManager and override the PaintCellBackground method.

    For the edition, you should follow the same approach with the CellEditorManager replacing the CellViewerManager. We show you to derive the CellManager and CellEditor classes at the following link:

    http://doc.xceedsoft.com/products/xceedgrid/CellViewerManager_and_CellEditorManager_extensions.html.

     


    Xceed - Software Developer and Technical Support
  •  03-10-2010, 11:44 AM Post no. 26060 in reply to 26039

    Re: Date editor and Text viewer in cell

    Thanks Mohamed, extending the CellViewerManager did the job.

     

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.