i am having two buttons in the gridview but they dont return anything event after using the \"CommandName\" in which i write the function name but it does not do anything.>
and here is the code behind:
protected void gvProduct_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow Row = (GridViewRow)((Control)e.CommandSource).NamingContainer;
int rowID = Convert.ToInt32(gvProduct.DataKeys[Row.RowIndex].Value);
if (e.CommandName == "EditCommand")
{
EditFunction(rowID);
}
else
if (e.CommandName == "DeleteCommand")
{
DeleteFunction(rowID);
}
}