for example
Array[3,4];
Array[0,0] = Combobox.items[0];
.
.
.
Array[2,3] = Combobox.items[12];
int sum = 0;
for (i = 0; i < Rows; i++)
{
for (int j = 0; j < Columns; j++)
{
Array[i, j] = Convert.ToInt32(Allocation_Combo.Items[sum+j]);
}
sum = sum + 1;
}
i have tried this code but it is not working…may be error in it …??
Is this what you need? The relationship between array coordinates and combobox item indexes is not immediately apparent, since
Array[2,3]would represent index 9 in the list, not 8, as you have. But here goes: