DataGrid not firing SelectedIndexChanged newbie question

R

rwg

I'm working through the MSDN's "Walkthrough: Creating a Web Application
Using Visual C# or Visual Basic"

I double clicked on the Datagrid which created the SelectedIndexChanged
event handler, but this handler never get's events! Got kicks and grins I
added event handlers for datagrid's sorting, and for the dataview's
listchanged, both of these fire.

Is there something special needed to make the DataGrid SelectedIndexCHanged
event to fire?

BTW: This may be unrelated or related, but the DataView's ListChange event
fires twice before the PageLoad event is fired. The first time it shows the
current index as 0, the second time it shows the current index as -1.

Thanks
-rwg
 
R

rwg

Adding a second datagrid to the same form, and following the Walkthrough instructions again resulted in working Events. A comparasion of the ASPX code
indicated that the Button Column was not set up correctly.

-rwg
This is what I think, not necessarily what is accurate!

|
| I'm working through the MSDN's "Walkthrough: Creating a Web Application
| Using Visual C# or Visual Basic"
|
| I double clicked on the Datagrid which created the SelectedIndexChanged
| event handler, but this handler never get's events! Got kicks and grins I
| added event handlers for datagrid's sorting, and for the dataview's
| listchanged, both of these fire.
|
| Is there something special needed to make the DataGrid SelectedIndexCHanged
| event to fire?
|
| BTW: This may be unrelated or related, but the DataView's ListChange event
| fires twice before the PageLoad event is fired. The first time it shows the
| current index as 0, the second time it shows the current index as -1.
|
| 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