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. .NET (Core and Framework)
  4. DataGridTableStyle equivalent for DataGridView

DataGridTableStyle equivalent for DataGridView

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpquestionannouncement
9 Posts 4 Posters 5 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
    keniagm
    wrote on last edited by
    #1

    Hi everybody!! I've migrated a .Net 2003 VB project to .Net 2005, everything works fine, but I need to replace the use old DataGrid class with the DataGridView, as it's more functional; but I'm having the following problem: I need an equivalent of the DataGridTableStyle for the DataGridView, I know that as is it doesn't exist, but maybe there's another class that holds a similar functionality...? So, what I need is someone to give me a hint on that, maybe there's some kind of library already developed by a third-party that encapsulates the functionality of DataGridTableStyle and it'a appliable to DataGridView. Any help will be appreciated, as I have no idea of how I'm going to achieve the same for the new version of the program. Thanks in advance,

    Kenia

    L M 2 Replies Last reply
    0
    • K keniagm

      Hi everybody!! I've migrated a .Net 2003 VB project to .Net 2005, everything works fine, but I need to replace the use old DataGrid class with the DataGridView, as it's more functional; but I'm having the following problem: I need an equivalent of the DataGridTableStyle for the DataGridView, I know that as is it doesn't exist, but maybe there's another class that holds a similar functionality...? So, what I need is someone to give me a hint on that, maybe there's some kind of library already developed by a third-party that encapsulates the functionality of DataGridTableStyle and it'a appliable to DataGridView. Any help will be appreciated, as I have no idea of how I'm going to achieve the same for the new version of the program. Thanks in advance,

      Kenia

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      They hide that information in the documentation[^]

      led mike

      K 1 Reply Last reply
      0
      • L led mike

        They hide that information in the documentation[^]

        led mike

        K Offline
        K Offline
        keniagm
        wrote on last edited by
        #3

        Oh yes led, I know they do, that's why I see no other solution than implementing the class myself, but as the idea freaks me out a bit, I want to hear opinions from other programmers. Thanks anyway for your quick reply Best Regards,

        Kenia

        L 1 Reply Last reply
        0
        • K keniagm

          Oh yes led, I know they do, that's why I see no other solution than implementing the class myself, but as the idea freaks me out a bit, I want to hear opinions from other programmers. Thanks anyway for your quick reply Best Regards,

          Kenia

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          keniagm wrote:

          that's why I see no other solution than implementing the class myself,

          Sorry, I am not following you, you said:

          keniagm wrote:

          I need an equivalent of the DataGridTableStyle for the DataGridView, I know that as is it doesn't exist, but maybe there's another class that holds a similar functionality...?

          The documentation contains the new classes that work with DataGridView to accomplish similar ( but likely greater ) functionality, you don't have to "implement the class yourself".

          led mike

          K 1 Reply Last reply
          0
          • L led mike

            keniagm wrote:

            that's why I see no other solution than implementing the class myself,

            Sorry, I am not following you, you said:

            keniagm wrote:

            I need an equivalent of the DataGridTableStyle for the DataGridView, I know that as is it doesn't exist, but maybe there's another class that holds a similar functionality...?

            The documentation contains the new classes that work with DataGridView to accomplish similar ( but likely greater ) functionality, you don't have to "implement the class yourself".

            led mike

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

            They provide classes to work with the table elements such as cells, columns and so on, but I need to work with the table as a whole, do you get it now? And that's what I don't see in the documentation, classes to work with the entire table, if you know of any, please tell me. I hope I made myself clear enough this time. Thanks again,

            Kenia

            L 1 Reply Last reply
            0
            • K keniagm

              They provide classes to work with the table elements such as cells, columns and so on, but I need to work with the table as a whole, do you get it now? And that's what I don't see in the documentation, classes to work with the entire table, if you know of any, please tell me. I hope I made myself clear enough this time. Thanks again,

              Kenia

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              keniagm wrote:

              but I need to work with the table as a whole, do you get it now?

              No I don't. If working with the cells and columns allows you to achieve the functionality required for the project then "working with the table as a whole" is not required. You may "want" to do it that way, but you don't "need" to. "You can't always get what you want. But if you try sometime, you just might find you get what you need"[^] Do you get it now?

              led mike

              K 1 Reply Last reply
              0
              • L led mike

                keniagm wrote:

                but I need to work with the table as a whole, do you get it now?

                No I don't. If working with the cells and columns allows you to achieve the functionality required for the project then "working with the table as a whole" is not required. You may "want" to do it that way, but you don't "need" to. "You can't always get what you want. But if you try sometime, you just might find you get what you need"[^] Do you get it now?

                led mike

                K Offline
                K Offline
                keniagm
                wrote on last edited by
                #7

                Good point the Rolling Stones song!! It's not that I want to do it that way, it's just that there are lots of lines of code that work with the table, so if I start working with cells and columns then I'll have to change pretty much of the code, and it's not a good idea, as there are other functionalities to be added to the project and the DataGrid replacement is just one of a long long list. That's why I needed a similar table class for the DataGridView. Thanks anyway for your concern,

                Kenia

                1 Reply Last reply
                0
                • K keniagm

                  Hi everybody!! I've migrated a .Net 2003 VB project to .Net 2005, everything works fine, but I need to replace the use old DataGrid class with the DataGridView, as it's more functional; but I'm having the following problem: I need an equivalent of the DataGridTableStyle for the DataGridView, I know that as is it doesn't exist, but maybe there's another class that holds a similar functionality...? So, what I need is someone to give me a hint on that, maybe there's some kind of library already developed by a third-party that encapsulates the functionality of DataGridTableStyle and it'a appliable to DataGridView. Any help will be appreciated, as I have no idea of how I'm going to achieve the same for the new version of the program. Thanks in advance,

                  Kenia

                  M Offline
                  M Offline
                  Member 11901245
                  wrote on last edited by
                  #8

                  Any one know this answer for the question ,kindly help me too face same issue.

                  Richard DeemingR 1 Reply Last reply
                  0
                  • M Member 11901245

                    Any one know this answer for the question ,kindly help me too face same issue.

                    Richard DeemingR Offline
                    Richard DeemingR Offline
                    Richard Deeming
                    wrote on last edited by
                    #9

                    Read the rest of this 13-year-old thread. :doh: Basic Formatting and Styling in DataGridView Control - Windows Forms .NET Framework | Microsoft Docs[^]


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                    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