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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

User defined data per cell

Thread ID:

Created:

Updated:

Platform:

Replies:

75534 Jul 29,2008 05:27 PM UTC Jul 29,2008 06:42 PM UTC WPF 2
loading
Tags: GridControl
Ferenc Molnar
Asked On July 29, 2008 05:27 PM UTC

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 :).


Administrator [Syncfusion]
Replied On 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.




Ferenc Molnar
Replied On July 29, 2008 06:42 PM UTC



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





Perfect, this will be extremely practical!


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;