private void ResizeArray(ref string[,] original, int cols, int rows)
{
string[,] newArray = new string[rows, cols];
Array.Copy(original, newArray, original.Length);
original = newArray;
}
ResizeArray(list,10,2);
hmm sorry :) I didnt read your last sentence so answer to it you may use;
System.Collections.ArrayList class, which is a one-dimensional array that resizes itself. If you have an ArrayList whose elements were all ArrayLists, that will work as a multidimensional, so then it will automatically resize the array.