//protected void BtnExport_Click(object sender, EventArgs e)
        //{
        //        PdfPTable pdfTable = new PdfPTable(GVWTest.HeaderRow.Cells.Count);
        //        foreach (TableCell headerCell in GVWTest.HeaderRow.Cells)
        //        {
        //            Font f = new Font();
        //            f.Color = new BaseColor(GVWTest.HeaderStyle.ForeColor);

        //            PdfPCell pdfdCell = new PdfPCell(new Phrase(headerCell.Text, f));
        //            pdfdCell.BackgroundColor = new BaseColor(GVWTest.HeaderStyle.BackColor);
        //            pdfTable.AddCell(pdfdCell);
        //        }

        //        foreach (GridViewRow gvr in GVWTest.Rows)
        //        {
        //            foreach (TableCell tc in gvr.Cells)
        //            {
        //                Font f = new Font();
        //                f.Color = new BaseColor(GVWTest.RowStyle.ForeColor);
        //                PdfPCell pdfdCell = new PdfPCell(new Phrase(tc.Text));
        //                pdfdCell.BackgroundColor = new BaseColor(GVWTest.RowStyle.BackColor);
        //                pdfTable.AddCell(pdfdCell);
        //            }
        //        }

        //        Document doc = new Document(PageSize.A4, 10f, 10f, 10f, 10f);
        //        PdfWriter.GetInstance(doc, Response.OutputStream);

        //        doc.Open();
        //        doc.Add(pdfTable);
        //        doc.Close();

        //        Response.ContentType = "application/pdf";
        //        Response.AppendHeader("Content-Disposition", "attachment;filename=WrittenTestCalls.pdf");
        //        Response.Write(doc);
        //        Response.Flush();
        //        Response.End();
        //}

        protected void BtnSearch_Click(object sender, EventArgs e)
        {
            if (TBSearch.Text != string.Empty)
            {
                if (DDSearch.SelectedValue != "-1")
                {
                    objBll.Key         = TBSearch.Text;
                    objBll.Index       = DDSearch.SelectedItem.Text;
                    GVWTest.DataSource = null;
                    GVWTest.DataSource = objBll.SearchResult();
                    GVWTest.DataBind();
                }
                else
                {
                    ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Please select filter value')", true);
                }
            }
            else
            {
                ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('Searching parameter is empty')", true);
            }
        }
 public void GetWrit()
 {
     GVWTest.DataSource = null;
     GVWTest.DataSource = objBll.GetWritten();
     GVWTest.DataBind();
 }