Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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.