DataGrid Column with Tooltip/Datatip

I had the problem that I wanted to show text in a DataGrid column which could be far longer then the available space. It was not important that the text is visible all the time so a custom cellrenderer was not needed and the solution very simple.
Just define DataGridColumn like:

<mx:DataGridColumn headerText="Text" dataField="text" dataTipField="text" showDataTips="true" />

So you have to set the dataTipField to the property of the Object you render and set showDataTips true.

10 comments to DataGrid Column with Tooltip/Datatip