private void load() { DataTable dt = dlbooking.agentproductivity(blbooking); if (dt != null && dt.Rows.Count > 0) { dgBookings.DataSource = dt; dgBookings.DataBind(); } }