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 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnreturn_Click(object sender, EventArgs e) { Response.Redirect("Meeting_Print.aspx"); } protected void grdtbl0_SelectedIndexChanged(object sender, EventArgs e) { Response.Redirect("Meeting_Edit.aspx?id=" + grdtbl0.SelectedRow.Cells[0].Text.ToString()); } 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 = "لقاء تربوي"; } } }