DataGrid not firing SelectedIndexChanged newbie question

  • Thread starter Thread starter rwg
  • Start date Start date
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
 
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
 
Back
Top