- >>>Yes. I know i am a brute force programmer. I am not fighting you on what tool i should use.
- Tools make the carpenter.
- >>> I agree. Its time that i started using an object based programming interface to build scripts moving forward. I am not formally trained. Formal training may make someone 'smart' but it doesnt make them intelligent.
- I think you are quite intelligent given what you have cobbled together with no formal training
- >>>The key word here is that i write 'scripts' not 'programs'. This project has taken me deeper into the 'program' area than ive ever wanted to be in. I am a Microsoft Platform migration and configuration expert with 20 years of migration and configuration experience as a consultant not a developer. I have never been formally trained in any discipline and made it this far on raw talent alone. I have worked as a Microsoft Premiere Field engineer for AD, Exchange,O365,Azure, and SCCM. If its a Microsoft Product i can migrate it or configure it.
- Ahhh! That is the glitch. PowerShell can do configurations, but Forms are a different beast. They are a hard nut to crack without some learning and basics. I am not saying you need to become a software engineer but you do need to learn fundamental PowerShell and Forms. You are overworking yourself by guessing.
- >>>I know my own limitations and have rarely asked for help on my journey to where i am today. Using powershell for anything other than simple scripting is a limit i recognize and am posting here because i found your article on tech-comments.com on binding data which eventually brought me here.
- But you are not using “data binding” anywhere in your code. My tips and suggestions are to use a datatable and bind it to the grid. That will solve many of your issues and the column will be autogenerated.
- >>>Right now, i am working under a deadline so formal training isnt available or in my radar to get this project done.
- You could work with a book alongside of coding and do both. As of now you are stuck. You don’t understand my suggestions and you can’t move forward on your own. Sounds like a good excuse to hit the book
I am dynamically creating row headers and column headers in a datagridview using data from multiple tables. The DGV gets fully populated with checkbox columns/rows that intersect the column header and row header. I am unable to figure out how to bind this data into the DGV without using the DGV datasource since every time i add the datasource my row headers disapear. There are always more columns than rows.
I could not find a way to create a row header in a datatable nor how to mosh the different datasources for the headers so that the checkbox data is bound to the DGV. I need to be able to check or uncheck the checkboxes in each column then export that data based on button click.
I hope this is clear. I have attached the full code (It's a bit messy still cuz im not done) but i am hoping it wont be needed.
Thanks for the look!