How to remove extra lines in the table cell of Jface table - jface

Im using OneDrawLabelProvider to display multiline text in Jface table, but all the rows are of same height even for the ones which does not have multiline, how do I remove remove extra lines for the cells that does not have multilines?

You can't. JFace / SWT tables always have rows of the same height.
Eclipse Nebula NatTable does support different row heights.

Related

How to reduce the row size when the multi line data is removed from Jface Tvaleviewer

Using OwnerDrawLabelProvider() I am creating a multi-line table cells, so all rows are now of same size, if I delete a multiline cell and reload the table contents , all the rows still have the size of multiline row . When I close and open my application window the row size changes to single row. Without reopening the the window, how can I achieve this ?
I tried using viewer.setInput(null) and then viewer.setInput(data) it still behaves the same.
Unfortunately this is not possible. Eclipse bug 130024 describes this. It doesn't look like this will be fixed.

How to remove sort direction gray background on JFace table

I am performing sort on JFace table columns, and using the sort directions SWT.UP and SWT.DOWN to indicate the directions of sort, but gray background is getting displayed on the empty part of the column where there is no data, how do I remove that?. If that is not possible how can we place images of up arrow or down arrow on table header?

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.

Crystal report flowing text around image

I want to have this layout in crystal reports:
How to do this?
If the following data fetched from the database you can corretly obtined the output you want with out any repetition in column values :-).I think you put static data in the label field and set the muti column layout.right?
For image layout, I have no knowledge.
Multi Column layout:
Multi-Column layout is available in Crystal Report. For multiple columns:
1. Go to the detail section. Resize it so that it takes the width of a
single column.
2. Add your fields of interest to the details section. Resize them so
that they only use the specified width only.
3. Go into your Section Expert. In the section "Details", turn on the
Format with Multiple Columns option.
4. A new tab "Layout" will now be visible. It allows additional
formating including gap between the columns etc.
This should do the multi-column layout.

Displaying data in DataGridView without HorizontalScroll

My problem is data that load at startup in a DataGridView and a cell containing large data that I want to display on multiple lines instead of horizontalScroll
Multiple lines isn't (easily) supported. You can adjust the Width with Grid.AutoSizeColumnmode and the FillWidth properties of each column.
As an alternative Idea, why not place a multiline textbox near the Grid abd databind that to the specific column? Would show more of the text, but 1 row at a time.