Try visible="false" on a column without data, or don't specify columns and it will only show the data but the headings can be ugly.
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Oleg Konovalov Sent: Monday, January 14, 2013 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic DataGrid Hi, I am trying to create dynamic DataGrid, which shows columns only if it contains data returned by query (it has 10+ columns, so not easy to calculate sizes).. I read a lot of posts on the net, tried minWidth, ResizeMode, etc. Nothing really useful which works. In most cases it created very narrow columns except the last one - super wide. Please help! (using Flex4 AdvancedDataGrid) -- Thank you in advance, Oleg.