I am using following code to Create New cell for Detail Header
using (var cell = new TextBox())
{
cell.Value = value.GetRenderingFormat();
cell.StyleName = styleSheetKey.ToString();
cell.Size = new SizeU(GetColumnWidth(isFirstColumn), GetRowHeight());
cell.TextWrap = true;
cell.Multiline = true;
cell.KeepTogether = false;
cell.CanGrow = true;
return cell;
}
}
But the result is strange... for specific width that can adjust in 3 line works fine but not for 4 line. At the same time the column beside this one is working fine. The diff. between content is only one character is getting wrap in case of invalid printing.
Padding of the cell in stylesheet is as follwoing:
<BorderStyle Bottom="Solid" Top="Solid"/>
<BorderColor Default="Gray" />
<BorderWidth Bottom="0.5pt" Top="0.5pt"/>
<Font Name="Arial" Size="8pt" Bold="True" />
<Padding Left="0.19cm" Right="0.2"/>
Please see attached screens.
using (var cell = new TextBox())
{
cell.Value = value.GetRenderingFormat();
cell.StyleName = styleSheetKey.ToString();
cell.Size = new SizeU(GetColumnWidth(isFirstColumn), GetRowHeight());
cell.TextWrap = true;
cell.Multiline = true;
cell.KeepTogether = false;
cell.CanGrow = true;
return cell;
}
}
But the result is strange... for specific width that can adjust in 3 line works fine but not for 4 line. At the same time the column beside this one is working fine. The diff. between content is only one character is getting wrap in case of invalid printing.
Padding of the cell in stylesheet is as follwoing:
<BorderStyle Bottom="Solid" Top="Solid"/>
<BorderColor Default="Gray" />
<BorderWidth Bottom="0.5pt" Top="0.5pt"/>
<Font Name="Arial" Size="8pt" Bold="True" />
<Padding Left="0.19cm" Right="0.2"/>
Please see attached screens.