Colored Grid
-
I have a 2d array that I'd like to display in a colored grid. The colors on the grid would be based on the contents of the array. There would be 1 grid square for each point in the array. Example: I have int grid_data[ 3 ][ 3 ], I'd want to display a grid like . . . . . . . . . . . . . . . . And would like to be able to change the colors of each point easily. What's the best way to do this? Thanks
-
I have a 2d array that I'd like to display in a colored grid. The colors on the grid would be based on the contents of the array. There would be 1 grid square for each point in the array. Example: I have int grid_data[ 3 ][ 3 ], I'd want to display a grid like . . . . . . . . . . . . . . . . And would like to be able to change the colors of each point easily. What's the best way to do this? Thanks
The easiest way is to use a grid control like MSFlexGrid. Thanks for the help, Bill