Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help needed with building a Scheduling logic represented using DataGrid.

Help needed with building a Scheduling logic represented using DataGrid.

Scheduled Pinned Locked Moved ASP.NET
csharpsysadminbusinesshelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1124279
    wrote on last edited by
    #1

    Hi, I'm working on a page that generates a schedule for each month. The schedule is viewed using a DataGrid and I intend to build the schedule using a DataSet with a table adding rows to it sequentially for each day (The values in the rows are calculated based upon Business rules). I build this schedule sequentially like...I'm represting a pseudo code kinda code here. DataSet dtBPSchedule = new DataSet(). DataTable dtScheduler = new DataTable(); dtBPSchedule.Tables.Add(dtScheduler); Foreach day in CurrentMonth.Days { get the julian day of the day get the day of week of the current day. check whether day is a holiday. DataRow drBPRow = new DataRow(). Add all the column values based on rules into this Row and next Add the row into the table. etc etc... } dgBPSchedule.DataSource = dtBPSchedule.Tables["dtScheduler"]; dgBPSchedule.DataBind(); I wanted to use a Calendar web server control (by hiding it) to build this kinda logic but not sure whether this could be used or not. I'm sure someone wud have worked on this kinda stuff before and would appreciate if you could throw some light on this. Simply putting, I want to use the Calendar as a Class with properties Month and Days. Days should be something like a collection allowing the looping logic I specified above.I've been working on this almost for the whole day and got no where near to understanding how to do this. Please, I would greatly appreciate if I can get some help with this. Thanks a lot. ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~

    P 1 Reply Last reply
    0
    • U User 1124279

      Hi, I'm working on a page that generates a schedule for each month. The schedule is viewed using a DataGrid and I intend to build the schedule using a DataSet with a table adding rows to it sequentially for each day (The values in the rows are calculated based upon Business rules). I build this schedule sequentially like...I'm represting a pseudo code kinda code here. DataSet dtBPSchedule = new DataSet(). DataTable dtScheduler = new DataTable(); dtBPSchedule.Tables.Add(dtScheduler); Foreach day in CurrentMonth.Days { get the julian day of the day get the day of week of the current day. check whether day is a holiday. DataRow drBPRow = new DataRow(). Add all the column values based on rules into this Row and next Add the row into the table. etc etc... } dgBPSchedule.DataSource = dtBPSchedule.Tables["dtScheduler"]; dgBPSchedule.DataBind(); I wanted to use a Calendar web server control (by hiding it) to build this kinda logic but not sure whether this could be used or not. I'm sure someone wud have worked on this kinda stuff before and would appreciate if you could throw some light on this. Simply putting, I want to use the Calendar as a Class with properties Month and Days. Days should be something like a collection allowing the looping logic I specified above.I've been working on this almost for the whole day and got no where near to understanding how to do this. Please, I would greatly appreciate if I can get some help with this. Thanks a lot. ~~~~~~~~~~~~~~~~~~~~~~~~ Shravan Addaypally .NET Apps Developer BellSouth Billing Inc. Birmingham, AL 35205 ~~~~~~~~~~~~~~~~~~~~~~~~

      P Offline
      P Offline
      PSK_
      wrote on last edited by
      #2

      hi check this out ... http://www.aspnet-solutions.com/chapter\_5.htm Prakash Kalakoti

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups