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
1325
How to get 'cumulative' appearance of cell?
posted

Hi.

How could I easily get 'cumulative' appearance of cell? For example, I'd like to get ForeColor, BackColor and Font settings by right-clicking on column. The problem is that ForeColor could be decalred on grid level, BackColor on band level so in this calse UltraGridColumn.CellAppearance properties do not return actual values.

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    There is a ResolveApperance method on a cell that you can use to get this information, i.e.:

    AppearanceData appearance = new AppearanceData();
    AppearancePropFlags requestedProps = AppearancePropFlags.BackColor | AppearancePropFlags.ForeColor | AppearancePropFlags.FontData;
    cell.ResolveAppearance(ref appearance, requestedProps);

    -Matt

Children