Hi..

What do u mean from var cols: Array = datagrid.columns;

datagrid.columns is shown error.

On Mon, May 10, 2010 at 12:18 AM, Khalid Chaudhary <
[email protected]> wrote:

> Try the following:
>
> var cols: Array = datagrid.columns;
> cols.push(newColumn);
> datagrid.columns = cols;
> datagrid.validateNow();
> // Force the width of a specific column
> cols[0].width = 40;
>
> You can also check :
> http://www.facebook.com/pages/Flex-and-Java/107516712622040?ref=ts
>
> Hope it helps you.
>
>
>
>
> On Sun, May 9, 2010 at 6:53 PM, Dinesh MCA-KCT <[email protected]>wrote:
>
>>
>> Hi,
>>
>> I am doing a project in Flex, and i m new to flex.
>> i have come acrossed some levels..
>> Now in my proj, i have some problems..
>>
>> 1)  I want to refresh the data in datagrid at runtime without using
>> array(Becoz after insert the record in table that will to reflected in
>> Datagrid..)
>>     For this i have tried many ways but i dint get anything..
>> 2) I want to generate the Number of Datagrid columns at runtime(It is
>> not fixed, it may vary at any time)
>>
>>  For example if i give a value in input textbox like 5 or 6 the number
>> of columns of datagrid should displayed accordingly..
>>
>> 3) I have a idea for 2) if it possible for multiple script in flex...
>>   Just help for multiple script also if possible...
>>
>>
>>   Please anyone help me to proceed my project....
>>
>>
>>
>> --
>> Thanx & Regards
>>
>>      Dinesh
>>
>> --
>> 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]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>>
>  --
> 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]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>



-- 
Thanx & Regards

      Dinesh
       Hello
(9952-657-647)

-- 
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