Hi,
is it possible to set the RenderingControl for cells instead for the whole column?
For exmaple I want to replace an image inside a grid depending on the value it has.
Ok, the RenderingControl could take of itself for this, but more easy for me would to set it from outside.
Is this in general possible?
Thanks,
M
Thank you for posting in our forums.
If you are using EditorComponents that have FormatString property, you can set the FormatString directly on them and the grid will use it directly. The other option is to create the editors yourself, apply the format to them, and then set them as the cell editor. This is a more efficient way, since an Editor is less expensive than a full control and you can easily cache them based on the format that you are using.
I have attached a sample which demonstrates this suggestion.
Please let me know if you have any additional questions.
thanks, I have overlooked it.
It is possible as well to define custom Format for each cell? I just saw the Format property is only column-wide.
The UltraGridCell exposes EditorComponent property which you can use for in order to set different EditorComponent for the grid cells. You can handle the InitializeRow event and in it set the EditorComponent of the individual cells.