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. General Programming
  3. C#
  4. How would i go about programming an excel like worksheet??

How would i go about programming an excel like worksheet??

Scheduled Pinned Locked Moved C#
cssquestion
5 Posts 4 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.
  • K Offline
    K Offline
    kranius
    wrote on last edited by
    #1

    I generally mean the cell like structure.. Is this jsut a panel with a grid on it and mouse events to track which cell the user mouse is over??

    M G P 3 Replies Last reply
    0
    • K kranius

      I generally mean the cell like structure.. Is this jsut a panel with a grid on it and mouse events to track which cell the user mouse is over??

      M Offline
      M Offline
      Matthew Cuba
      wrote on last edited by
      #2

      kranius wrote:

      I generally mean the cell like structure.. Is this jsut a panel with a grid on it and mouse events to track which cell the user mouse is over??

      Perhaps a DataGridView would be a place to start. Just a suggestion. I'm sure there are an infinite number of ways to solve the problem, but I'd likely start there. Good Luck

      “You can't teach people to be lazy - either they have it, or they don't.” -Dagwood Bumbstead

      1 Reply Last reply
      0
      • K kranius

        I generally mean the cell like structure.. Is this jsut a panel with a grid on it and mouse events to track which cell the user mouse is over??

        G Offline
        G Offline
        GuyThiebaut
        wrote on last edited by
        #3

        In terms of data structures how about: An array may be a structure that works as you can reference the row and column directly just like a spreadsheet.

        You always pass failure on the way to success.
        1 Reply Last reply
        0
        • K kranius

          I generally mean the cell like structure.. Is this jsut a panel with a grid on it and mouse events to track which cell the user mouse is over??

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Before you think about how you are going to represent the data visually, you would be well advised to consider how it is represented in code. Would you store your information in a 2D array, or some other structure? Hint - the 2D version is very, very innefficient. Now, on the surface it would seem that you would be well advised to use a 2D structure because that mimics the layout of the cells very well, but as soon as your cell sizes grows to any distance then the memory consumption will go right through the roof. You can simulate the 2D structure with an algorithm such as a sparse-array which is much more memory efficient.

          Deja View - the feeling that you've seen this post before.

          K 1 Reply Last reply
          0
          • P Pete OHanlon

            Before you think about how you are going to represent the data visually, you would be well advised to consider how it is represented in code. Would you store your information in a 2D array, or some other structure? Hint - the 2D version is very, very innefficient. Now, on the surface it would seem that you would be well advised to use a 2D structure because that mimics the layout of the cells very well, but as soon as your cell sizes grows to any distance then the memory consumption will go right through the roof. You can simulate the 2D structure with an algorithm such as a sparse-array which is much more memory efficient.

            Deja View - the feeling that you've seen this post before.

            K Offline
            K Offline
            kranius
            wrote on last edited by
            #5

            Thanks for the advise. Well internal structure wise, I was thinking something like a double linked list. It is really the gui side that I can't think of a good way to accomplish it.. I take a look at the datagridiew and see how it would work..

            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