protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
GridViewRow row = (GridViewRow)e.Row;
TableCell cell = new TableCell();
cell.Text = "Action";
row.Cells.Add(cell);
}
if (e.Row.RowType == DataControlRowType.DataRow)
{
GridViewRow row = (GridViewRow)e.Row;
TableCell cell = new TableCell();
LinkButton link = new LinkButton();
link.Text = "ActionValue";
link.Attributes.Add("onClick", "javascript:window.open('http://www.google.com','MyWindow','left=162px, top=134px, width=500px, height=500px, status=no, resizable= yes, scrollbars=yes, toolbar=no, location=no, menubar=no');return false;");
...
Go to the complete details ...