How to hide a column in TListview? - delphi

I am using a listview to store and show data.
How can i hide and show a column in listview?
Dont tell me to set the column width to 0 please!!!!

In the Delphi TListView you can't hide columns in vsReport view style. Your only option is to delete the column when you need to hide it, and create it again when you need to show it.
This is yet another example of why virtual list views are much more desirable than non-virtual list views. With a virtual list view you can insert new columns without having to iterate across all items in the list and re-populate their sub items.

Related

2 way modification with an array

I have a Google sheet with many tabs representing a location with an inventory. In every tabs, there's a column with a chez box to state if that item as to be moved to a new building. I made an array in another tab (filter tab) that filter all the items that the box is checked. Because it's an array, I can't modify the item in the filter tab, have to go on the original tab where it comes from to modify it. Is there any way I can modify in the filter tab and have that modification change also in the original tab?
Here the array function I use in the filter tab.
=QUERY({'SALLE 1'!A:H;'SALLE 2'!A:H;'SALLE 3'!A:H;'SALLE 4'!A:H;'SALLE 5'!A:H;'SALLE 6'!A:H;'SALLE 7'!A:H;'SALLE 8'!A:H;'SALLE 9'!A:H;'SALLE 10'!A:H};"select Col1,Col2,Col3,Col4,Col5,Col6,Col7,Col8 where (Col5='X' or Col5='x')")
no, that is not possible to do in Google Sheets. you can't reference the reference nor create two-directional references and create paradoxes

Angular UI-grid, how to tell what the next column in the scroll is

I have a ui grid that has 20 columns, and I would like to be able to tell what the next column will be as I scroll through the horizontal axis so that I can have some text that will tell the users what the names of all the columns they can't see are.
Anyone know if this is possible? As I watch the the inspector and scroll through the columns, I see html attributes changing.
---UPDATE 1----
This is what is all looks like (where it says "home #" is dynamic and will change to show the next column that is out of site)
Based on the ui-grid configuration that you use to render the grid, you already know the order of the columns. You can use this information together with the visible on each column added by the gird itself.
What you need to do is bind a event handler on scroll to iterate over the columns on each change and check the visibility of them. Then the first one with visible === false is the upcoming.
Here is a working Plunker where is used this flag.

How to display multiple columns in TDBLookupComboBox?

I tried setting ListField property to "Column1;Column2" but only Column1 is diplayed. Is it even possible to diplay multiple columns in this component or I must search for some 3rd party solution?
Using C++ Builder XE6...
Multiple columns in ListField will only show those columns during dropdown. If you want to show multiple fields even in closeup mode you should add a calculated field for use in ListField.

Items to move up dynamically

If I have a a number of elements in one table column and I drag them one at a time to another column utilizing jQuery UI, how do I make remaining items in the first column move up, i.e. fill the gap left by the items that were moved. Assuming table cell valign="top".
I think it has to do something with DOM. It seems that even after I drag the item is it still in the same column.
You might want to use jquery ui's sortable instead.
http://jqueryui.com/demos/sortable/#connect-lists
You can connect lists and anything moved from one list will move the remaining elements to fill any gaps
However you are not giving us any code/markup to work with so I can only guess. Hope this helps!

Hide a Column name in a list View sharepoint 2007

I'm using a list as a list of hyperlinks so there's no need to sort ascending etc but the "Name" is annoying, how can I hide the name of the column but still show that column's data.
You can set it to blank when OnRowBinding is fired

Resources