Windows Develop Bookmark and Share   
 index > Windows Forms General > Using DataGrid control to view/edit a matrix of data
 

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


MigrationUser 1  Thursday, June 24, 2004 3:52 PM
DataMatrix?  whats that exactly?

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
MigrationUser 1  Thursday, June 24, 2004 5:55 PM

You are correct --- I mean a 2 or 3 dimensional data array. At least I could make my program work that way.





MigrationUser 1  Friday, June 25, 2004 9:56 PM
Wow, this is cool.

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.
MigrationUser 1  Friday, June 25, 2004 10:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Searching text in html document
• Autoscroll and layout
• create control panel applet?
• Getting System MessageBox font & other settings
• Outlook - Pvt Appointments
• ASCII Control Characters in a TextBox
• MonthCalendar control - formatting problem
• Displaying a Tooltip if text entered is UpperCase
• Custom Control - Extending Over Parents Edge
• resize while rotation