using System; using System.Collections; using System.Configuration; using System.Data; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; public partial class Meeting_Print : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string xadmin = Session["admin"].ToString(); if (xadmin == "True") { grdtbl0.DataBind(); } else Response.Redirect("Home.aspx"); } protected void grdDocs_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //------------------ Have Document or Not --------------------- String Design; Design = (String)e.Row.Cells[3].Text; if (Design == "1") e.Row.Cells[3].Text = "دورة تدريبية"; if (Design == "2") e.Row.Cells[3].Text = "لقاء تربوي"; } } }