DataGridTableStyle equivalent for DataGridView
-
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
-
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
-
They hide that information in the documentation[^]
led mike
-
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
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
-
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
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
-
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
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
-
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
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
-
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
Any one know this answer for the question ,kindly help me too face same issue.
-
Any one know this answer for the question ,kindly help me too face same issue.
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