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
Related
I have a column that has dropdown list with data validation, and its applied infinitely down that column. So I have lots of cells with the little dropdown arrow which is annoying.
Is there a way to remove that dropdown arrow....IF say "Date" or "Name" column is empty?
I want the drop to to show only when I have started inputting data to that row, I will never start with the drop down, I start with date. So ideally, as soon after entering the date, the dropdown arrow appears.
Can that be done? Thanks!
You can remove the dropdown arrows by unchecking Show Dropdown List in Cell on Data Validation dialog:
This will show the dropdown list only when you start entering data to the cell.
User has options for selecting columns he/she wants to see(from a list of check boxes user can select) and they can also set priority for each column i.e which column should be displayed first,second and so on .How to make this happen .
Thanks
I have not tried this before. But I think what you can do is sort you columnDefs array in the the grid options dynamically. And then do queueRefresh()
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.
I have a dropdown list in which I select how many people are going to a party. When the user changes the value of the dropdown list, I want as many fields as the number selected to appear and hide the rest.
But I don't know how can I hide or delete fields because I don't know their index.
Yes you will need to have the fields you want to hide as a global variables.
You will also need to get the value the user has selected and use that to work out what fields should be removed or added.
One way would be to add all the fields in order to a vector or an array when the screen is initialised. Once the user has selected a value you could iterate through the fields and use the current index of the list and the user selected value to work out if the field should be removed or added.
If you have the field objects, then use Field.getIndex() to find the index of each field within its manager.
I have searched a database using a query.
The results of the search are displayed in a DBGrid component for the user to select the row s/he wishes to proceed with.
DBGrid always sets the record pointer to the first record in the results set, so a row is always "selected" by default. I need to change this behaviour to no row being selected when the data is first presented so that I can determine if the user has actually made a selection.
Is it possible to tell if no selection has been made, i.e. no row has been selected by the user?
Any help very much welcomed!
You can include dgMultiSelect into DBGrid.Options, then DBGrid.SelectedRows will contain list of explicitly selected record bookmarks. Without dgMultiSelect the DBGrid always track the current dataset record.