Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 196703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:47:24+00:00 2026-05-11T16:47:24+00:00

What suggestions do people have for a timeslot data structure? I have a number

  • 0

What suggestions do people have for a timeslot data structure?

I have a number of activities and I’m planning to display them in a datagrid with days as columns and timeslots as rows. This suggests to me a timeslot data structure with 5 properties for the five days (the columns) for every value I want to use e.g. a timeslot ID and the number of slots left.

So…

  • Property Day1ID
  • Property Day1Slots
  • Property Day2ID
  • Property Day2Slots
  • Property Day3ID
  • Property Day4Slots
  • etc

Then each TimeSlot structure would be for a specific time… say 9:00 and another for each hour after that. Then I’d have a list of timeslot structures that will auto bind against the datagrid.

I’m exporing new ground here and as you can see I’m not very clear on what/how to do it?

All suggestions welcome,

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:47:25+00:00Added an answer on May 11, 2026 at 4:47 pm

    Create a structure like this:

    struct DayInfo
    {
        int ID;
        int[] Slots;
    }
    

    and then have a List to store all your data, which can be easy binded to 2 nested repeaters.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for suggestions as well as any benchmarks or observations people have. We
People have asked similar questions about the efficiency of various data structures but none
EDIT: I have changed my program according to suggestions people have made but I
Any suggestions on the best way to display this table on an Android platform?
I am wondering what other people have found to be the best graphing libraries/plug-ins/gems
It looks like people have had issues with Accept headers in the past, but
This has been asked before and people have given very good instructions on how
Any anecdotal comments or suggestions are welcome. We have applications that consume 3rd party
So I have an ASP.NET MVC 3 website that allows people to advertise certain
I think many people have done some similar development tasks before: I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.