How can i get rowid or row index of gridview when i click button of particular row of grid (i have used button of grid).
Can any one give me reply with bit detail of function to use in code(I.e whcih event argument to use)
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted May 10, 2010, 5:41 AM
DRISHTYPosted May 10, 2010, 5:18 AM
protected void gridview1_RowCommand(object sender, GridviewCommandArguments e)
{
if e.commandbame.equals("thebuttoncommand"))
{
int index = convert.toint32(e.commandargument);
}
}