Hi Aspose Team,
I'm trying to add a cellCommand on the first column of my dataTable.
I proceed like :
//in OnInit
grid.CellCommand += new CellEventHandler(grid_CellCommand);
cells.Clear();
sheet.DataSource = data;
sheet.EnableCreateBindColumnHeader = true;
sheet.CreateAutoGenratedColumns();
sheet.DataBind();
sheet.BindColumns[0].CommandName = "Info";
//handler
void grid_CellCommand(object sender, CellEventArgs e)
{Response.Redirect(urlToInfo); }
but it doesn't work.
Is it the correct way to do it at runtime?