displaying arrays in the datagrid.

May 25 2004 12:36 PM
lets say I have int []row1 = { 1, 2, 3, 4}; int []row2 = { 5, 6, 7, 8}; ArrayList data = new ArrayList(); data.Add( row1); data.Add( row2); now I want to display this data in the datagrid. any suggestions how I can do this? obviously, numbers or rows and number of columns (elements in the array) can be changed on the fly, but all rows (arrays) will have the same number of elements. Thank you.

Answers (4)