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
130
Intercept cell paint
posted

I want to intercept cell paint event to display a diferent text from a cell value.

I want cells that contains numeric or string value and show formated text depend of this value.

I would like cells tha contains '1:3:7:8:' value and print in cell 4 items selected.

Why Cell.Text is readonly?

Why 'Value' and 'Text' can't be different ?

 Thanks in advance.

 

Parents
  • 469350
    Offline posted

    There are a number of ways you can do this. 

    1) You could use an unbound column. Hide the real column and use InitializeRow to copy the value to/from the real column. 

    2) You could use a DataFilter. This will only work if you can convert both ways to and from the displayed text and the value. 

    3) You can use a CreationFilter to set the text on the TextUIElement in the cell. This won't work if the field is editable. 

     

Reply Children