//Use the following code snippet at itemEditEnd="setColWidth(event)"
of Datagrid
private function setColWith(event : DataGridEvent):void{
 var num : Number = event.columnIndex;
 var textLen : Number = event.target.itemEditorInstance.length;
 sGrid.columns[num].width = textLen*10;
}

Cheers
Varun Rathore
http://www.vrathore.blogspot.com




On 21 Apr, 11:44, Akhil Agrawal <[email protected]> wrote:
> hi all,
> is there a way so that columnwidth set automatically accodring to text
> and is it possible to have different columnwidth for different column
> in datagrid control
>
> thanx and rgds
> akhil agrawal
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to