Using DataGrid control to view/edit a matrix of data
I want to display & edit a simple data matrix (or similar structure) using the DataGrid control. Can someone point me to a simple tutorial to do this Or show me some sample code to do this All the examples I can find involve binding DataGrid to an SQL database of some kind.
- Henrik

Using DataGrid control to view/edit a matrix of data
IanMixxxqqq
You are correct --- I mean a 2 or 3 dimensional data array. At least I could make my program work that way.
MonkWebs
I've been playing with the datagrid, making a timeline editor for an audio mixer.
I think you mean something like using the datagrid to display a two dimensional array (or 3 dimensional) - where you would use the pivot table feature built in.
Interesting topic
fawkes
I would just create a datatable - actually, I would build a translation algorithm that would translate a nested array to data tables
This is essentionally what my O/R mapper does.once in a datatable (nested - you would have one table with primary key (1st dimension) one with foreign key (2 dimensional)
Something like that.
But manually building the tables, thats built in. Then you automatically have the + signs on the cells and can expand it, like a pivot table, and see the next dimension
Are we talking the same thing The data grid is tricky, but some of the things are very nice :) DataGrid is one of my favorites.