data table problem again, haven't solved

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

I have the following codes. and two tables: "relation" and "nodes".
I don't know why it always access to the "nodes" table. the problem is how
can I access to my "relation" table


//======================================================
foreach(DataTable s in rootDS.Tables)
{
MessageBox.Show(s.TableName+s.Columns[0].ColumnName);
}

//======================================================
 
Your problem is that it accesses "nodes" first? You can
reference them by name if you need them in a specific
order:

MessageBox.Show(rootDS["relation"].TableName)
 
Back
Top