Ejemplo n.º 1
0
        protected void grd_PayReport_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
            DataTable dt = new DataTable();

            dt = GBusiness.GetPayment(3);
            if (dt.Rows.Count > 0)
            {
                grd_PayReport.DataSource  = dt;
                img_ExportToExcel.Visible = true;
            }
            else
            {
                grd_PayReport.Visible     = false;
                img_ExportToExcel.Visible = false;
            }
        }