index out of bound.

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!
 
T

Tracey

Hi, all

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

thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top