If I have created a cell within another cell using iTextSharp 7, how could I set the inner cell's border?
All the styles apply to the inner cell, except border?
Related
I need to change the font-color of the parent row to red when any cell of the child row is edited.
Also the cellStyle for various cells of the child row is displayed in red color when the data is not correct.
I think you can try using redraw API provided by ag grid. Just call the API after the cell value is changed.
when I am trying
cell.setBorder(Rectangle.BOTTOM);
cell.setBorder(Rectangle.RIGHT);
It is overlapping bottom border and setting only right border of selected cell
same thing happened in reverse manner with
cell.setBorder(Rectangle.BOTTOM);
cell.setBorder(Rectangle.RIGHT);
Does it possible to set bottom and right border of cell together for selected cell ?
In iTextSharp I have used:
cell.Border = Rectangle.BOTTOM_BORDER | Rectangle.RIGHT_BORDER;
You could try:
cell.setBorder(Rectangle.BOTTOM | Rectangle.RIGHT);
Yes it is possible, Rectangle.BOTTOM=2,Rectangle.TOP=1,Rectangle.RIGHT=8,Rectangle.LEFT=4
so for right and bottom,try cell.setBorder(10);,it works for me itext1.3
I need to have a border line for the PdfPTable but not for the cells inside. Can anyone tell me how to do it?
I have done this by putting this table inside a new cell. Now my question is how to add a line to split the rows?
In iText each PdfPCell has its own borders.
You can set the borders needed on the cell, and in case of a nested table do the same for that tables cells.
In your case you probably want to set the bottom border on the entire row that is to be separated.
I have table cell with 1 textfield & 1 uiswitch placed in single cell. I have table cell of height 100. How can I add separator to this cell so that there is distinction between textfield & uiswitch?
Assuming that you are adding subviews to your cell, you would need to create a custom view with a switch and a separator (a graphic or something else) to add to your cell as a subview.
Question: if you are adding a switch and a textfield, shouldn't they be in two separate cells anyway? That way you would get a natural horizontal divider.
I am using a grouped tableview and need to resize 1 cell where the enclosed cell.detailTextLabel has exceeded the size of the cell (i.e. about 3 lines worth).
Is there any easy way for the cell to auto-size itself to it's contents or otherwise, how do I change the size of that particular cell?
The UITableViewDelegate has a method called tableView:heightForRowAtIndexPath:. Just have it return the desired height for each row.