We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

User defined data per cell

Hello,

Is there a way to set a user-defined data (an object type would be best) per cell?

For example, when using GridVirtualizingCellRenderer classes for custom cell styles/types, the OnRender() method passes a GridRenderStyleInfo for that particular cell. However, in many instances, you would like to add some additional arguments to be passed (ie: a custom structure/class) or to be accessible to customize further that particular cell.

I can work around this by maintaining that information separate from the grid and looking it up, but it would be nice not to have to construct an outside class/holder for such custom information, hence a user-defined object property could be added to the relevant classes of the grid that are passed as parameters to a lot of functions.

Hope it makes sense :).


2 Replies

AD Administrator Syncfusion Team July 29, 2008 05:45 PM UTC

Currently, there is no such property.

Our Windows Forms GridStyleInfo object has a Tag property that can be used for cell specific data. We will be adding something similar for the WPF Grid.

So, for the time being, you would have to maintain your own cache.





FM Ferenc Molnar July 29, 2008 06:42 PM UTC



>We will be adding something similar for the WPF Grid.





Perfect, this will be extremely practical!


Loader.
Live Chat Icon For mobile
Up arrow icon