Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataRelation problem

Status
Not open for further replies.

JontyMC

Programmer
Nov 26, 2001
1,276
GB
I have dataset with two tables:

Employee: ID, Name, CompanyID
Company: ID, CompanyName

I set up datarelation Employee.CompanyID/CompanyID.

Now I set datasource of my datagrid to dataset.employee.

My datagrid displays:

ID - Name - CompanyID
+ Company: ID - CompanyName

How can I get it to display the columns I want (with no drill down):

ID - Name - CompanyName

(In SQL, I would do "SELECT ID, Name, CompanyName FROM Employee INNER JOIN Company ON Employee.CompanyID = Company.ID")

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top