Click here to Skip to main content
15,896,486 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a 16 x 16 x 18 array to display on a form, (level 0 only)
do i have to make boxes on the form for all the grid locations on level 0?
is there a better way of doing this.
Posted
Updated 28-Jul-10 10:42am
v2
Comments
Yusuf 28-Jul-10 17:48pm    
If you saying you want to display your array (data source) in DataGrid, I say go for it. While reinvent the wheel when you can pull one off the shelf.

Sounds like you can extract a valid data source for a data bound control from this data.
 
Share this answer
 
I am afraid your question does not make any sense. Please specify your problem better, for example:

What exactly do you need to display?
What kind of data do you work with?
Which language do you use? (I can see the question is tagged both C# and VB...)

The more information you provide, the bigger the chance that you will get the answer you are looking for.
 
Share this answer
 
Comments
Christian Graus 28-Jul-10 17:21pm    
It makes perfect sense. His data is in an array, and he wants to show it on his form. He's wondering if he needs to draw his own grid.
Christian Graus is correct, i am trying to use c#
the data is in the form of unsigned integers,
from 0 up to the value 65535
display data is on the first level of the array :-
array (0,0,0),array(0,1,0)... array(15,15,0)
 
Share this answer
 
Comments
Christian Graus 28-Jul-10 17:37pm    
Please don't press 'answer' to make a comment. So, as I said, if you can build a 2D array of the data you want to show, that is a perfectly acceptable data source for a data bound control like a Data Grid.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900