protected void grdBO_RowCreated(object sender, GridViewRowEventArgs e)
{
//if it is data row and it is in edit mode
if (e.Row.RowType == DataControlRowType.DataRow && (e.Row.RowState & DataControlRowState.Edit) != 0)
{
Button addButton = e.Row.FindControl("btnUploadFile") as Button;
addButton.CommandArgument = e.Row.RowIndex.ToString();
}
}
то что тебе нужно . Просто замени Button на LinkButton
/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With gr
Данное сообщение получено с сайта GotDotNet.RU
|