Tuesday, March 13, 2012

System.StackOverflowException

hi.

when i run the following program

MyGrid.EditItemIndex = 0
MyGrid.DataBind()

there is a statement

System.StackOverflowException

what's the problemHy,

A detailed description wud b beneficial..
Hi,

to what are you binding? It's a best practice to create a private sub where you do the datagrid binding. Setting the edititemindex can be done in the proper eventhandler and after that you can recall that sub where your databinding occurs. Also make sure in this case that you check for postbacks in your page_load.

Grz, Kris.
Where are you setting the datasource for the datagrid

0 comments:

Post a Comment