Looks like you are trying to use mx:DataGrid concepts in a Spark DataGrid.
Any sample of how to acheive the same for Spark DataGrid? I would any appreciate any help.
I just recently created a custom item renderer and here's how I implemented it (in pseudo code):
<list itemRenderer="myCustomItemRenderer" click="myList_clickHandler(event)">
Aside from that all you need to do is create a custom Spark ItemRenderer. It takes much less time doing it in the new Spark architecture than it did in the old MX architecture.
If you need to see how to create a custom ItemRenderer follow this URL and you should be good to go: http://help.adobe.com/en_US/flex/using/WS03d33b8076db57b9-23c04461124bbeca597-8000.html
Hope this helps,
P.S. - my example is of a List, but I don't imagine it would be too difficult to implement for DataGrid instead.
Message was edited by: BK_POHS
It is a different contract for Spark DataGrid. There is a different set of
interfaces to implement like IGridItemRenderer.
I need to define a custom item renderer at the run time.
Yes, I am realizing that slowly but painfully .
Is there a complete example of what I am trying to do?
I am getting it working but I am stuck on getting a columnIndex of the column being edited. Can you help?