hi there...
you have to try this in the rowcreated of your grid:
Code:
Dim Boton As ImageButton = Nothing
If e.Row.RowType = DataControlRowType.DataRow Then
Try
Boton = e.Row.FindControl("ImageButton1") 'the name of your button
Boton.CommandArgument = e.Row.RowIndex.ToString()
Catch ex As Exception
End Try
end if
and after that in the rowcommand you will have the the rownumber in e.CommandArgument
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========