In the OnItemDataBound event set the attribute for your button. So it will
look something like:
btnFunc.Attributes["onClick"] = "javascript
:callfunction('" +
myGrid.SelectedIndex.ToString() + "');";
"Joe" <an*******@discussions.microsoft.com> wrote in message
news:27****************************@phx.gbl...
I have got a button in my datagrid and this is calling
a javascript function.
how do I pass the selected index of the datagrid to this
javascript function.. Is this possible
thanks in advance