Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Confused again. I was finally able to run ArcCatalog and create a join in my map document (I will do the deed programmatically eventually) but I was interested in how a join looked once it was created. However, when I iterate thru the layers and read the fields associated to each layer using get_Field(index) in C# I see no joined fields. How can I read (and use) an existing join?

share|improve this question
up vote 3 down vote accepted

Use IDisplayTable:

//psuedocode
IDisplayTable pDisplayTable = pFeatureLayer as IDisplayTable;
ITable ptable = pDisplayTable.DisplayTable;
share|improve this answer
    
That works, except, why are the fields marked not visible showing up and why are the alias names I set in the layer still using the old field names? – Chaz Oct 11 '11 at 17:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.