listview items centered but left aligned when selected - vb.net

I have a listview with a single column with values centered down every row. I'm just trying to find out what's causing the entries to get pushed to the left of the column everytime one of the entries is selected with a mouse or keyboard.
Thanks!

Related

Left and Top positions of table cells relative to page in MS Word

I need to calculate the left and top coordinates of a table cell.
At work we have been developing an Add-In in VBA for Microsoft Word to turn Word documents into fillable PDF forms. All fields are to be inserted inside table cells, so it is the exact location of the table cells (left and top relative to the page) that are necessary for the placing of the data fields.
To get the vertical position of the top of a cell relative to the upper leftmost corner of the page we have tried:
Tables(n).Cell(row,column).Range.Information(wdVerticalPositionRelativeToPage)
The results exceed the table Top position by about 5 points at the top of the page. The excess is reduced as you go down the page. In cells located about the end of the page the result is spot on.
To get the horizontal position relative to the upper leftmost corner of the page we have tried:
Tables(n).Cell(row,column).Range.Information(wdHorizontalPositionRelativeToPage)
The results are incorrect. The results point to Left of the Table (not of the cell) plus about 3 points.
We have tried setting the table to Fixed Column Widths, and varying the zoom from 100% to fit to Window. No luck.
Any suggestions how to get the correct vertical (top) and horizontal (left) positions of a cell?

Determining Left and Right Table Boundary Position

I need to know the left and right boundary position of a table. I tried various combinations of Selection.Information(wdHorizontalPositionRelativeToPage), but that appears to give the position of text within the table, and hence is dependent on cell padding and left/center/right justification.
I want the left and right table border position.
It seems this should be simple. For instance, the table knows where to draw it's boundaries.
You need to get the position of the table's range not the selection.
ActiveDocument.Tables(n).Range.Information(wdHorizontalPositionRelativeToPage) will give you the position for a specific table.
Selection.Tables(1).Range.Information(wdHorizontalPositionRelativeToPage) will give you the position for the table that contains the selection.

How to scroll PyGTK ScrolledWindow to a certain row of a nested table?

I have a program in PyGTK which has a ScrolledWindow and a Table nested in it. The table rows can be of a different height. What I'm trying to find is a way to scroll the view so it begins from the selected row. I know how to move the scrollbar to a certain position using the scrolled_window.get_vadjustment().set_value(), but I do not know how to find the scroll position of the table rows.
Alternatively, maybe I'm using wrong widget and someone can point me to the right one? I'm trying to achieve the following behaviour: the screen shows the rows of a table, the top row is the currently selected object, when the user presses up or down buttons, the whole table scrolls down or up, so the previous or the next row becomes the top row.
Nevermind, I found a solution: you have to use the child widget get_allocation() function, which returns the bounding rectangle of a child widget relative to the scrolledwindow, so child.get_allocation().y is the answer to my own question.

RDLC - How to display each row from dataset in each page?

I am having set of text boxes in the report and binding each columns in the text box from the Data set.
As of now only first record from the dataset is binding in the text box.
I need all the rows in the dataset to bind in the text boxes page wise.
Each row in the dataset bind to text boxes page wise.
First record in first page,Second record in second page ... etc.
How to achieve this? Help me to solve this...
Thanks in Advance,
Stephen.L
I recently faced the same issue, I used some help from stackoverflow to solve the issue, u might have already figured it out but this is to help others with similar issue.
Make sure you have a Dataset defined for your report.
Add a "Table" control to the report. This seems to be needed in order to iterate the rows in your Dataset.
Delete the header row and two of the default columns from the table so that you are left with a single row with a single column.
Expand the table to the width of your layout and make it as tall as you will need for your "free form" layout.
By default, there is a TextBox inside the table cell. Right-click the empty table cell and choose "delete" to remove that TextBox.
Drag a "Rectangle" control into the empty table cell. It seems to automatically "dock" to the width/height of the table cell.
Now you should be able to drag the fields from your DataSet (TextBoxes, etc) into the Rectangle to produce the desired layout.
You can use a List with page breaks at the end of details group.

How to perform multiple selections in a Qlikview Straight Table?

How would I go about making multiple selections in a QlikView straight table?
For example, how would I select the 1st and 5th rows at the same time?
There is a section about multiple selections in the QlikView 11 - Reference Manual :
14.5 Multiple Selection Within a Field
Multiple selections within a field (from one lisstrong textt box) can be made in a number of ways:
Position the cursor in the list box, then drag it over a number of field values while pressing the
mouse button.
Click the first field value to be selected, then CTRL-click each additional selection.
Click the top item to be selected, then SHIFT-click the bottom item to be selected. This way all the
items in between will be selected. However, if the sort mechanism is on, the first selection may cause
the order to change, which makes it difficult to make a correct second selection.
Confirm a text search (see below) by hitting the ENTER key. This will result in all matching field
values being selected. By keeping the CTRL key depressed while pressing ENTER the selections
from the text search will be added to previous selections.
To deselect a previously made additional selection, CTRL-click it.
If a multiple selection is made in one list box, and make a new selection from the available optional values
in another list box, some of the selected values in the first list box may get excluded. However, when the
selection in the second list box is canceled, the previous selections will, by default, be recovered.
A multiple selection can be interpreted in two different ways, either as a logical or or as a logical and.
Default is logical or, i.e. QlikView will find a solution that is associated to one or more of the selected field
values.
HTH
For straight tables, you can only select items next to each other. Ctrl-Select only works for listboxes