Hi,
I guess you have to put it inthe Command argument :)
What I usually do is put the "id" or key inthe ComandArgument. I have never
put the column index. I'mpretty sure you can get a hold of it using binding.
Otherwise you have to use ItemDataBound method.
--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"James Lennon" <Ja*********@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
>I have a gridview that has a button column and a template column with
another
button in it. When I click on the button column button I can get the row
index in the event handler for the CommandArgument parameter. However
when I
click on the template column button the CommandArgument parameter is "".
How can I get the row index when a user clicks on a button in a template
column?
Thanks,
James