Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace WebApplication1
- {
- public partial class Test : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!Page.IsPostBack)
- {
- BindGrid();
- }
- }
- private void BindGrid()
- {
- List<UserStatusCalendar> show = new List<UserStatusCalendar>();
- show.Add(new UserStatusCalendar { UserName = "foo", Email = "foo@bar.com", Status = "Good", Date = "Jan 1 2010 10:09" });
- show.Add(new UserStatusCalendar { UserName = "bar", Email = "z@abc.com", Status = "No Good", Date = "Aug 9 2010 11:19" });
- statusCal.DataSource = show;
- statusCal.DataBind();
- }
- }
- public class UserStatusCalendar
- {
- public string UserName { get; set; }
- public string Email { get; set; }
- public string Status { get; set; }
- public string Date { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement