8
Answers

Index was outside the bounds of the array.

Guha Prabakaran

Guha Prabakaran

18y
7.4k
1
All,

When it hits the Bold line, I get the error, Index was outside the bounds of the array.
Anyone know what I need to know.
Thanks
Guha
<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>

DataGridViewCell[,] cells = new DataGridViewCell[15, 1];
foreach (DataGridViewCell cell in selectedCells)
{
cells[0, 1].Value = cell.value;

}
Answers (8)
Next Recommended Forum