index out of bound.

  • Thread starter Thread starter Tracey
  • Start date Start date
T

Tracey

I wrote a statement like:

Dim rect As Rectangle = DataGrid1.GetCellBounds(0, 0)

And when I step into the execuation of this statement.
I got an error message:
"Index was outside of the array. "

Can someone tell me why.
Thanks!
 
Hi, all

I have found the problem.It is because that the datagrid
has no data inside.

thanks.
 
Back
Top