Implementing tree structure UITableview - iphone

Can We create tree structure in UITableView like below.
-Sub1 //First row
-Sub1sub1 //First row's child
-sub1sub1sub1 //Child's child etc..
-sub1sub1sub2
-Sun1sub2
-sub2sub2sub1
-sub2sub2sub2
-Sub2
-Sub2sub1
-sub1sub2sub1
-sub1sub1sub2
-Sun2sub2
-sub2sub2sub1
-sub2sub2sub2
Don't want any code but is there any reference for implementing this..or just let me know is it possible or not..
Please help me to solve this question..
Thanks in advance.

Finally I got my answer..
Using this Github link
Thanks Github...

TableView delegate method
tableView:indentationLevelForRowAtIndexPath:
can be used to indent rows according to your needs

I've done it before, and using this approach helped me a lot:
Implementing UITableView Tree Structure
If you need help of how to implement that solution, or if it doenst fit your problem, let us know and we will help you
Edit: I just realized you have one more level of depth that the link, but in your case you can use a header for the first level)

Related

copy/paste row with event 1 row down and create new event on top of former row with event. The events themselves are text

I hope you will be able to help me.
I need to do the following in Excel:
a. Newest event comes on top and the former event moves 1 row down (below), and;
b. After newest event has been copied and pasted to 1 row down, the first row is clear of any data (blank cells);
c. Now a new event comes on top of the former event. If there is also a new date involved than everything the old events and dates moves at least 2 rows down and leaves a blank row in between. And so on until a full month has been reached;
d. After that the entire sheet/month is copied to an archive.
I've been trying to write the code for this in VBA, but thus far it's not working. To be honest, I can't code and I've trying to do this through youtube and everything I can find online.
I would greatly appreciate any help I can get on this one. I'm new here so I can't a picture just yet. Hopefully somebody understands my questions.
Again thanks for any help on this one.
enter image description here
The picture describes pretty much how I want this to work
I'm answering my own questions, because I sort figured it out and I'm really excited. So the code is not perfect, I know but it works :)
There are two type of code running:
1.
Sub MoveCopyRows()
'Copy and Paste Row
Range("10:10").Copy
Range("11:11").Insert
End Sub
And
2.
Sub CutInsertSheet()
'Cut or Copy and Paste to another worksheet
Worksheets("Overdracht").Range("11:35").Cut
Worksheets("Berichtenhistorie").Range("6:6").Insert
Application.CutCopyMode = False
End Sub
This coding has got me hooked. Now I'm going to see, if I can combine them and if I would be able to change the cell color automatically after adding a new row. Wish me luck everybody! :) And before I forget, thx everybody for your help!

How to get the content in the table within a CVirtualGridCtrl control of a window through pywinauto

I am trying to get the content of a table within a GridCtrl control as shown in the screenshot below.
I have found through spy++ that the control containing the table is CVirtualGridCtrl.
But how can I get the content of the table?
app = pywinauto.Application().Connect(path = "xiadan.exe")
control = app[u'网上股票交易系统5.0'].CVirtualGridCtrl
control.PrintControlIdentifiers()
If I run the above code, I will get the following output:
Having searched and test for a long time, I still have no clue.
Could someone kindly give me a hint? Thanks a lot.
Edit:
Really appreciate your quick response #vasily-ryabov. I have tried as you suggested, unfortunately there is no recognizable control to get the numbers I want.
Does this mean that it is then impossible to get the content of the cells?
I have also tried right clicked on the control, but there is no interested short-cut operation.
You can try to use clipboard to get grid data.
control.type_keys('^A^C')
data = pywinauto.clipboard.GetData()

GWT Expand/Collapse boxes?

Im looking to create something like the image( https://www.dropbox.com/s/i2h1813c13v12y0/samp.jpg ) using GWT-UiBinder method. I cannot use a tree becoz i need the collapsed view to have - Title, a single field value , icons that that are like status symbols. The expanded view than contains the Title and icon like the collapsed but the value + additional values are displayed in detail.
please let me know your ideas! Examples would be great!!
Thanks
Are you looking for the DisclosurePanel? (with a custom header widget)
This looks like a use case for DeckLayoutPanel.
You should then embed any widget Image/Input/CellTable/DataGrid in each container per "Deck".
You might have some good example here - http://www.slideshare.net/martyhall/gwt-tutorial-laying-out-windows-with-panels-part-ii-composite-panels#btnNext
Edit - I probably did not understand the requirement correctly. Check out these demos.
http://examples.roughian.com/index.htm#Panels~DeckPanel
http://examples.roughian.com/index.htm#Panels~StackPanel
T Broyers Suggestion - http://examples.roughian.com/index.htm#Panels~DisclosurePanel

DataGridViewComboBoxCell selectioindexchange event

I have a data-grid and three column in it. one column is type of DataGridViewComboBoxCell, three items are in this grid combo box, now i have to invoke selection index changed event to change value according to combo value change in grid.
also help me to make a new event ....
please help...
thanks
I really can't understand your question.
But maybe these informations can help:
A ComboBoxColumn has always two kinds of controls. A presenting one (in most cases a label) which is individually for each row. And a editing one that will be shared for the whole column. So take a look into this documentation and the IDataGridViewEditingControl Interface.
Maybe these will give you a starting point on how to solve your problem.
In the Load event for the form, you need to get the cell that you want to add the handler to and cast it as a regular combo box. You can then add the event handler on SelectedIndexChanged, but it must be done programmatically, and depending on the language you are using.

Simple Q about UIPickerView properties

Ok this is probably so simple that it's laughable, but I can't figure the answer. What is the property of the uipickerview? For the UIDatePicker, its datePicker.date, for label you can do label.text, etc etc. Is there a pickerView.XX syntax where I can get the value selected similar to the datePicker? Please let me know. Thanks
selectedRowInComponent:
You probably missed it b/c it isn't a property.