If not which structure should I use ?
+1
A:
Assuming you mean to persist it to a database, you would be better served looking at a foreign-key / DataRelation
. If you really want more structured data in a cell, then perhaps something like xml, or some other serialization format.
Marc Gravell
2009-09-07 22:06:00
+1 I agree - an XML document can be considered a "database".
DmitryK
2009-09-07 22:18:04
(or use an auxiliary key-value table instead)
Robert Venables
2009-09-08 02:13:24
+1
A:
According to what I infer from your question you can say something like this :
DataRow dr = new DataRow();
DataTable dtable = dr[0].Table
MSDN : DataRow's DataTable Property : Gets the DataTable for which this row has a schema.
Example and Explanation : http://msdn.microsoft.com/en-us/library/system.data.datarow.table.aspx
Braveyard
2009-09-07 22:08:34
I may be wrong, but I believe the OP is referring to *nested* data, rather than getting back to the table from a row.
Marc Gravell
2009-09-07 22:10:10
That's what I know :) you can simply find the related information here : http://msdn.microsoft.com/en-us/library/system.data.datarow.table.aspx
Braveyard
2009-09-07 22:17:47