imohamed
2014-03-20T20:46:18Z
I notice that the built in context menu does not allow users to make columns invisible/visible. Before I build some sort of custom form with a bunch of checkboxes, I wanted to see if anyone had any recommendations for giving users the ability to hide/view columns.

In addition, my plan is to use the LayoutSort and LayoutCol properties to save user defined views of the grid to the database. Would love to hear any tips/advice/gotchas on using those properties as well.

Thanks
Imran
Igor/10Tec
2014-03-21T14:50:18Z
Even if the built-in column header context menu had the Hide Column command, it would be hard to understand how the opposite command Show Column should work in this ideology. For instance, in MS Excel we should select several columns to apply this command to show the hidden columns between the selected ones. But we are trying not to bloat iGrid with a huge number of functions to keep it as simple and tiny as possible, so it is up to you to implement this feature.

Perhaps, the best solution for iGrid is to use a checked list box with the column list to show/hide the columns. You can find an example of this in the Outlook demo. The accompanying screenshot is attached, the control I'm talking about is marked with a red rectangle. It's simple and very easy for end-users.
Igor/10Tec attached the following image(s):
imohamed
2014-03-24T19:33:26Z
That will work for me but i have a couple of follow up questions:
1) Is that checkbox control an iGrid control?
2) I cannot check this myself because I am using Access. I have Visual Studio but I'm using VS2010 which cannot open up the demos vbp file. Are their upgraded versions of the demos available?

Igor/10Tec
2014-03-25T14:05:50Z
Originally Posted by: imohamed 


1) Is that checkbox control an iGrid control?



This is a VB6 ListBox control with check marks. But this does not matter - it's just the demonstration of the idea. You can use any other control with similar functionality that is available in your dev environment, or even iGrid with its cell checkboxes for that.

Originally Posted by: imohamed 


2) I cannot check this myself because I am using Access. I have Visual Studio but I'm using VS2010 which cannot open up the demos vbp file. Are their upgraded versions of the demos available?



Are you doing a .NET development? VS2010 implies this, but in this case you need iGrid for .NET, not iGrid ActiveX.

As for the source code of the iGrid ActiveX demo which is VB6 code, you can view it in a text editor if you do not have VB6. All VB6 forms are implemented in .frm files which can be opened in any text editor like Notepad.