GtkTreeView select row editing a column - gtk

I'm working with c, glade and gtk2
One column is editable. Editing one value, scrolling to no visible row and select (clicking) on one of this rows, the cursor go to one third row. The row selected is near edited value on the same row displayed position that clicked.
I think the problem is when GtkTreeView receives focus (end edition) set the display on the first value and after this is selected the row.
Is possible to force the selected/focused row to be displayed on GtkTreeView focus-in signal.

Try setting the selection mode to GTK_SELECTION_BROWSE, then one row should always be selected

Related

Separate row selection from row checkbox selection?

Does ag-grid support separating row selection from checked checkboxes?
My users need to select a row (click on it, or keyboard nav) to see further details about the row. Then they need to check the checkbox (or not) to select the row for later export to Excel.
So for example, they'll click every row to see the further details, but only check some of the checkboxes for later export. Is this supported?
If not, what would be a good approach to implement? Add my own checkboxes to the first column?
You can set suppressRowClickSelection to true when you want checkbox selection, and don't want to also select when the row is clicked. If true, rows won't be selected when clicked.
You can read more about this here - https://www.ag-grid.com/javascript-grid-selection/
You can use ag-Grids selection capabilities for the checkbox selection and then use the onRowClicked prop to do a different select on row click. I'm doing just this (but with onRowDoubleClicked.
You still want to set suppressRowClickSelection to true.

Display two fields in one line and one just if necessary

I created a standard report with jaspersoft studio.
I want to display two fields in one column (which works already). The second field in the column should just be displayed if it has data (which works too). But It seems that if the second field is not displayed it still takes up space. Or at least the first field isn't vertically aligned in the middle.
I put both in a frame and made them float. Any ideas how to make it align in the middle in the third screenshot?
As Alex K pointed out I just copied the first textfield again and put It over the old frame. When there is no data in the second field I hide the frame and show the textfield. When there is data in the second field I hide the textfield and show the frame.

Table in word cut off the text at bottom of it?

I have problem with table cut off the text at the bottom of the table. I have tried all the solutions from checking warping, and other table properties, but nothing worked.
Usually the "Allow row to break across pages" would solve your issue but is probably obstructed by the splitted cells in column one. I'd merge the cells in column one to get equal number of cells in column one and uncheck the "Allow row to break across pages" options on the Table Properties Row Tab.
Copy/paste the text to another part of the document outside of the table.
Then select the text and set Paragraph --> Indents/Spacing --> Line Spacing: Single
Copy/paste back to the table.

table with multiselection and clickable row

I already have a table - CellTable, with single selection model and i used onSelectionChange to find when row was clicked
Next I added to that column which containes check box
and here comes my problem
if i use single selection model, when i tick one row, other row become unticked
i tried to switch to multiselection model, but in this case, i can't click on row, and onSelectionChanges is executed only when i click on my check box, but i can tick more than one box
is any chance how i can have both - multiselection and clickable row?
regards
Yes it is possible.
But I am suprised that it doesn't work because the default behavior of the MultiSelectionModel should be that the row is selected as soon as you click it. However maybe in the presence of a CheckBoxCell column it is different.
Anyways you have to check following JavaDocs:
Constructor of the CheckboxCell
DefaultSelectionEventManager

Selection reset issue when scrolling a UITableView

I have 15 rows in my table. When I select the first row and scroll to last row of the table, and come to back to the first row, my selection is reset. How can I fix this row selection reset issue when scrolling the table?
How are you selecting the row? Because of the table-cell reuse mechanism, just setting the selected property on an individual cell usually won't work; calling -selectRowsAtIndexPaths:animated: on the table view itself is the correct way to set its selection.