what is best way to load datagrid component with data from multi dimensional array using for loops.