I have four tables created by a stored procedure. I’ve assigned the tables to four DataTables in my code.
DataTable dtAtt = ds.Tables[0];
DataTable dtWav = ds.Tables[1];
DataTable dtOrg = ds.Tables[2];
DataTable dtMain = ds.Tables[3];
In dtOrg the primary key is OrgMainId. I need to grab the Name field from dtOrg where OrgMainId = some value.
Thanks.
You could use the
Selectcommand (code not tested) –http://msdn.microsoft.com/en-us/library/det4aw50.aspx