Hi,

I've made a class that fills a dataGrid with the data from any given CSV file automaticly.

What i'd like to do now is resize the width of each column based on the content. So i'd like to go through each cell and use textLineMetrics to work out the biggest cells width in pixels. But i don't know how to speak to the cells from within my class.

Alternatively if you know of another way to adjust the width of columns so it fits the content nicely, I'm all ears?

Danny