Http://www.cnblogs.com/lovecherry/archive/2005/04/04/131787.html said how to trigger your own events in the DataGrid template column, netizens ask how to know which to click? To get information in this. That line DataGridItem is
(DROPDOWNLIST) Sender .parent)
? not because of
((Checkbox) (Checkbox) .parent) is TableCell, which should be true.
(DROPDOWNLIST) Sender .parent.parent)
What happened to you, what happened. Output line number:
Response.write ((DROPDOWNLIST) ((DROPDOWNLIST) Sender .parent.parent) .ItemIndex);
output value:
Response.write ((DROPDOWNLIST) ((DROPDOWNLIST) Sender .parent.parent) .Cells [
0
] .Text);