dharmendr say
hello ,
am getting error, just no data like name and date
the columns with number mean cell its correct ?
i mean , the button delete/edit columns is 12, name 2, datastar 5, dateend 6
protected void OnRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string idnamev = e.Row.Cells[2].Text;
string datestart = e.Row.Cells[5].Text;
string dateend = e.Row.Cells[6].Text;
foreach (LinkButton button in e.Row.Cells[12].Controls.OfType<LinkButton>())
{
if (button.CommandName == "Delete")
{
button.Attributes["onclick"] = "if(!confirm('Do you want to delete\\nName\\n"
+ idnamev + "\\ndatestart - dateend\\n" + datestart + " - " + dateend + "')){ return false; };";
}
}
}
}