I've got a form on which I'd like to display a "Grid" ( hate to use the word), giving the user the option of amending the Working days per week for each of the 4 Yearly quarters (Q1,Q2,Q3 and Q4) and for each week within each quarter.
So I've got (in essence ) an Array[4,13] which I want to display and to allow the user to edit.
The data to be edited is picked up from a property from a Visio Shape.
Can anyone give me any adice simply on how to display an array, with predetermined values, and then address elements of the array to extract their values?
I've been messing around with DataView Controls, Arrays of Controls, invocation of Excel and I'm at a complete loss as to how I might achieve this simple task without opening a box that I know will cause even more problems.
So, to paraphrase, if you have a 10x10 array with known values, what is the best control to use to display this array, allow editing and have the edit results available for query?
Thanks, any advice will really help
Brent Wherry
d
Loading
Sam HobbsPosted Feb 21, 2010, 12:17 PM
Note that controls such as the DataGridView have a collection (Rows or some other relevant name) that can be used like a one-dimensional array and DataGridView rows have a collection of cells, which is effectively a two-dimensional array, although it is not possible to access the data using two-dimensional syntax.
If my reply aboved helped you, then please check the "Do you like this Answer" checkbox. Note that there can be only one checkbox checked per thread.
rbwherryPosted Feb 21, 2010, 4:47 AM
I was just about to convert the listBox to edit but your suggestion is so much better.
Thankyou again.
Brent
p.s. Although I've shown a big gap in my C# skills, I do have some pretty good experience in automating Visio and using the Extend simulation system and some iThink System Dynamics (see www.focused-on.com) . If I can ever help you, please feel welcome to ask.
Sam HobbsPosted Feb 21, 2010, 12:18 AM
rbwherryPosted Feb 20, 2010, 11:20 AM
Thanks
Brent
kiran kumarPosted Feb 20, 2010, 11:08 AM