Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
417
Relationship between CellUIElement and UltraGridCell
posted

I’m struggling to workout what the relationship is with CellUIElement and the UltraGridCell. I understand that you can derive the UltraGridCell from the GetContext method of the CellUIElement, but how are the two related? Can someone please explain the relationship beween these objects and how and when they are created.

Kind Regards,

Tim

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Tim,

    Hm... the distinction is pretty clear in my minds, but I am finding it a bit difficult to put into words.

    The UltraGridCell represents a cell in a row. It has properties related to the cell, such as the Value, a reference to the column, a Style, a Hidden property, etc.

    The UIElement is a visual representation of the cell and contains the child elements that make up that cell on the screen (and potentially in a printed document, as well). UIElements are a concept that is part of the Infragistics WinForms Presentation Layout Framework. Everything you see on the screen in any of the WinForms controls is handled by UIElements.

    Most of the time, you really don't need to use UIElements at all. They are there to provide a framework for drawing controls and objects and they can be used to provide advanced extensibility if you need to do something that the control doesn't ordinarily do.

    You might get a better understanding of UIElements if you check out the Infragistics UIElementViewer Utility

Children