protected void BindGrid()
    {
        DataTable Dtb = S.Insert_MKTPLANNING_MOU("SUBCATEGORY", DrpCategory.SelectedItem.Text, "", 0, 0, 0, Convert.ToInt32(DrpAcyear.SelectedValue));

        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();
    }
    public void BindGrid()
    {
        StudentRegistrationDAL S = new StudentRegistrationDAL();
        DataTable Dtb            = S.InsertLicenseRenewal(DrpCourseType.SelectedValue, DateTime.Now, DateTime.Now, txtDescription.Text.Trim(), txtRemarks.Text.Trim(),
                                                          0, "SELECT", 0);

        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();
    }
Example #3
0
    private void ExportToExcel(DataTable Dtb, string Name)
    {
        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();

        string result = ToExcel(GrvGrid.DataSource, Name);

        ExportToExcel(result, Name);
    }
    private void ExportToExcel(DataTable Dtb)
    {
        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();

        string    result = ExcelUtility.ToExcel(GrvGrid.DataSource);
        DataTable Dt     = (DataTable)GrvGrid.DataSource;

        ExcelUtility.ExportToExcel1(Dt);
    }