Customizing Attribute Table view/form

423
1
11-28-2011 11:41 AM
KevinOrcutt
New Contributor
Howdy All,
    Please excuse my ignorance here. it's been about 6 years since I've dealt with ArcObjects....  So I am trying to add a new button to the form that shows the attribute table of a layer...  I'm pretty sure this can be done, but i have NO idea as to where to start...  Could someone please point me in the correct direction????




Thanks in advance,
Kevin Orcutt

ps.  forgot to mention that this problem is using ArcGIS 10...  🙂
0 Kudos
1 Reply
GregRieck
Occasional Contributor III
Kevin,

Take a look at ITableWindow3 and IStandaloneTable

Something along the lines of this (NOT TESTED)
ITable Table = TheTableOfInsterest;
IStandaloneTable SAT = new StandaloneTable();
SAT.Table = Table;
ITableWindow3 tw3 = new TableWindow() as ITableWindow3;
tw3.Application = App;
if (tw3 == null)
  return;
tw3 = tw3.FindViaStandaloneTable(SAT) as ITableWindow3;
tw3.Show(true);


G
0 Kudos