I have two DataTables. I want to do inner join them into a new Data Table. There is no database access.
First columns of the Data Tables are key field.
string ParentKeyColumn = dt1.Columns[0].ColumnName;
string ChildKeyColumn = dt2.Columns[0].ColumnName;
Also I m using Devexpress components.
How can I do this?
Take a look at this blog post on social.msdn.
Key details:
Define a primary key:
Define a data relation and add it to your dataset: