Set the draggable of TitleWindow to false
You may need to have a titlewindow in a popup, but centered and not draggable. In such a case, simple set the "isPopUp" property in the creationComplete method
<mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" showCloseButton="true" close="onCancelSelected();"
xmlns:mx="library://ns.adobe.com/flex/mx" width="1000" height="550" creationComplete="onCreationComplete()" layout="absolute">
private function onCreationComplete():void{
this.isPopUp = false;
}
Set column itemrenderer dynamically
We can create datagrid columns dynamically. In such cases, is you need to set a custom item renderer for the column:
myColumn.itemRenderer = new ClassFactory(com.renderers.CustomCBRenderer);