How to make specific column items in the list control to be editable? - mfc

I am having a listcontrol which intern consists of 4 columns.Now I wanna edit second column items in the list.How can I make it editable?I have seen many samples in code project and in many other forums ,In none of the forums I was given an simple solution.I can make it done but it is time consuming (by debugging),Is there any simple solution to make a specific column items in the list to be editable.(For Instance I want all the items in the second column to be editable)
Any suggestions can be appreciable..

This is your quick solution with in-place editing of all columns: http://www.codeproject.com/Articles/8112/CQuickList

Related

Best way to make a list of rows and column in wxpython with each row having buttons in last column?

I want to make a list of n rows with m columns. Last column must contain a button which on clicking deletes the entire row which that button belongs to.
Click here to see my desired GUI.
I have already looked for wx.grid and didn't get any success.
My questions are
Can this be achieved by using wx.ListCtrl?. If yes then how?
Which is the best wx widget other than wx.grid to achieve this.
Any sample code or illustration will be appreciated.
Thanks

Can i change an item in a list from another list?

I´ve created a list in SharePoint. What i´ll like to do is create another list, and retrieve some information from one list to my new one, and be able to change the input data from list A in a single line of text.
So lets say, list A is PopStar, with columns like Genre "Rock", HairColor "Red" and GrammyCount "2".
In list B i only want textboxes to show whats in list A and be able to change (update) them, for example Genre to "Pop", HairColor to "Black" and GrammyCont to "8" ?
Is this possible?
i´m using office 365
In order to achieve exactly what you want you will require either a Workflow or an Event Receiver, however I assume you won't feel confident by struggling with such approaches, furthermore, there are some workarounds that could be very close to your requirement and maybe are even better solutions than the approach you suggest, in terms of maintenance, growth and upgrade.
I suggest to review topics like "SharePoint parent/child list webparts connections" or "sharepoint edit form add child items", here are two videos of which you can get some ideas.
https://www.youtube.com/watch?v=9PWIxk6rF-A
https://www.youtube.com/watch?v=-5CdjfLONgE
Take in count that you can do more than what is displayed in the videos, by example in the Edit Form you could add a webpart to display the Quick Edit View (Grid View) of the related list so the values can be edited in the same Form and thus removing the need to navigate to a second window.

Qt - Can Several QtableWidgets share linked Items

Qt Several tableWidgets share linked Items
Hi, in Qt I have a QMainWindow -> centralWidget (QWidget) -> QtabWidget -> then 10 Tabs (QWidgets) -> each with up to 26 QtableWidgets:
Sample 1
Sample 2
The idea is that instead of this:
void MainWindow::on_pushButton_Add_Player_clicked()
{
ui->tableWidget_Players->insertRow(ui->tableWidget_Players->rowCount());
ui->tableWidget_Defensive->insertRow(ui->tableWidget_Defensive->rowCount());
.
. [10 tableWidgets in Total]
.
ui->tableWidgetAll->insertRow(ui->tableWidget_Players->rowCount());
}
Is there a way so that I can add a column each time to every tableWidget with less code.
Of course that's not there is to it, in fact I want to know is there is a way to link some of the Items of each that are actually the same Item but it's repeated in each like for example the Player Name is the same per row in each tableWidget, so if the user edits the name in one, it should change it in the same row in every tableWidget.
Is there a way to link them somehow, or the only way it's checking for item changes as signals.
I would also like that if I sort by column in one tableWidget, the new arrangement of the rows should be the same in every tableWidget.
Can anyone point me in the correct direction, the only idea I have it's using signals for ItemChanged. Isn't there a better way?
Thanks a lot for your time.
If your tables are the same data, you should consider getting some nice model view controller action going (also say that phrase a lot when applying for jobs, they like that ;))
To do this you need to create a tablemodel. And a TableView widget. This way, the data is shared, so it exists in only one place. All your TableViews just show the data. You can have a look at QSortedFilterProxy to filter your data for a specific view(i have never used this, so don't know). That way you have your playerModel somewhere, and each view has a proxyModel that only shows for instance the active players.

Oracle APEX: Add list boxes on demand

I am new to APEX and was wondering if you could point me in the right direction. I have an app that has 24 pairs of list boxes, (24 is the limit per requirements). What I did was create and show all 24 and it looks weird. (See image here).
My question is this: Is there a way to have maybe just one pair show and as they make their selection, a new pair of list boxes appears? Or maybe have a button that says something like "add a new category / type" and once clicked, a pair of list boxes is created? This would go on until they've populated the 23 sets of list boxes since 24 would be the limit.
By the way, the selected category value drives the type value. On the linked image, the size of the list boxes varies because of this. Can those list boxes be made with a fixed width?
Oh, I'm using 4.2.
Having read through the posts on this, if you did want to attempt creating a report which has cascading select lists you could try the approach found at this link:
https://apex.oracle.com/pls/apex/f?p=39514:1:
It's a slightly long winded process so it may not be the easiest solution, however having read through the instructions the guy provides it seems do-able:
https://apextipps.wordpress.com/2010/11/02/cascading-lov-in-tabular-form/
Hope that is of some help.

MFC CListCtrl updating text of any cell

This question is to understand how to update any row programatically.
Details.
I have a listcrtl, that accepts the data from either from a file or from the edit controls in the dialog. When the items are added I will know its position, that I added, so I can change its subitem texts. I have even implemented the sort functionality in the list, so now the position keeps changing. I have an identifier column for each row, so that I can recognize the row.
Now, from an out side event, if I have to change an other columns value of an ID that I know , I have to first find the position of the item by comparing the id column, then with that position, I have set the subitemtext.
This works fine except that it takes time to find the row first then it need to update the column.
Now, in order to get the row directly, I need some help.
I have gone through
http://msdn.microsoft.com/en-us/library/windows/desktop/hh298346(v=vs.85).aspx
But this does not use MFC. Please help me achieving this.
If you have many items you should consider switching to Virtual Lists. It is the fastest way to access the data. If you do not want to invest time to this, then the easiest way for you will be the following:
When you populate the CListCtrl store the ID of each item in the item data using the SetItemData() method. The ID will always be associated with the item, even after re-sorting.
When you need to locate the required item, just scan all items, but do not use GetItemText(). Use GetItemData() instead. This will be faster