Groups | Blog | Home
all groups > asp.net datagrid control > august 2004 >

asp.net datagrid control : EditCommand event



Alex
8/6/2004 1:19:29 AM
Does anyone know how DataGrid knows which index of an Edit button/link
caused the postback so as to pass it along as an argument to EditCommand
event?

Jos
8/6/2004 6:35:06 PM
[quoted text, click to view]

By its ID.

If you want to dig through the code of a working DataGrid:
http://www.go-mono.com/class-status-System.Web.html
and
http://cvs.hispalinux.es/cgi-bin/cvsweb/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs?cvsroot=mono&rev=1

--

Jos

AddThis Social Bookmark Button