Jorge - Monday, March 23, 2009 5:56 AM:
Hi All,
There is an option in Aras where if you right-click on the Column Header in any Tabular View it will give you an option to Hide Column or Insert Column. Is it possible to Hide / Insert Columns using Methods?
I have this Form where I have Header and Detail ItemTypes. What I want to accomplish is when I load the form, it will initially hide some columns in the Detail Tab View but still the User can Insert those columns that I initially hide if the User wishes to.
I cannot do this by setting the Hidden2 checked because the User cannot have the option to Insert the column anymore. Nor I cannot ask the User to Hide / Insert columns manually every time he logs in.
Or may be a better way to accomplish this? Help anyone?
Thanks and best regards,
Jorge
RobMcAveney - Monday, March 23, 2009 12:09 PM:
Hi Jorge -
I think you need the IGridComIncoming.SetColumnVisible method -- try looking it up in the API Reference (Help->API Reference, under Aras.Client.Controls Namespace). I'm not sure where you'd want to call that from, but hiding a column that way does allow the user to unhide it interactively.
Regards -
Rob
Jorge - Wednesday, March 25, 2009 10:56 PM:
Hi Rob,
Thanks for the quick reply.
I have tried so many ways to hide a column, called on Form Events (onLoad, OnFormPopulate, etc..) but I am failing miserably. Maybe I will just try different approach to meet my requirement for the meantime. But I still think it will be a lot easier to just hide those columns that I don't need to show through methods hahaha.. Maybe one day someone will come up with same idea and write the code :))
Best regards,
Jorge
Shiva - Monday, December 17, 2012 6:46 AM:
Hi Rob,
I am trying to hide columns on a relationship grid (TabLabel = Parts) for parent Item type (Supplier Part) formload event.
But unable to get a handle to the relationship grid on the tab (Parts).
I understand once I have the handle to the grid on the specific tab I would be able to use SetColumnVisible method.
Can you suggest on how to get a handle to the gird on 'Parts' tab.
OK -- just managed to get hanlde to the Grid and hide the column. using - http://www.aras.comhttp://www.aras.com/Community/forums/p/2625/9336.aspx#9336
But now I am unable to unhide the columns via a method. ("grid.SetColumnVisible" does not work when I pass the value true)
Thank you for your time.
Regards
Shiva