I am trying to add elements to an ArrayCollection using
and provided this ArrayCollection as a dataprovider to the DataGrid and when running the page it is displaying an exception that variable "Ravi" is not defined .
Please share your ideas , why is it happening so ??
"Ravi" (as your current code has is) is not a variable it is a value. Can you show the code that causes the error? (FlexBuilder will break at the line that causes it).