This is just the way web browsers work. 20 spaces looks the same as 1 space (unless you have a monospaced preformatted font.)This is particularly useful for SQL Select statements. You can make your fields big enough for all possibilities, without having to worry about extra white space. In the example below, the field might be empty, or it might have a hyperlink. When I display the resulting cursor in a grid, it formats just fine.
select;
PADR(iif(empty(shopjob.serial),[],;
[<a href="equipment.wcfp?serial=]+shopjob.serial+[">]+shopjob.serial+[</a>]),80) as serial,;
...
.. Geoff
Dear Rick,
I set a grid with a column as sum of 2 character text fields:
<ww:wwWebDataGrid ID="Grid1" runat="server" DataSource="qBo2" width="1240">
<Columns>
<ww:wwWebDataGridColumn ID="Column5" runat="server"
Expression="Field1+Field2"
HeaderText="Fnz">
</ww:wwWebDataGridColumn>
...
I see the grid perfectly in browser, as if it were already
ALLTRIM(Field1) + " " + ALLTRIM(Field2)
Do you confirm that it is so?
Is it not necessary I set in Grid1
<ww:wwWebDataGrid ID="Grid1" runat="server" DataSource="qBo2" width="1240">
<Columns>
<ww:wwWebDataGridColumn ID="Column5" runat="server"
Expression=ALLTRIM(Field1) + " " + ALLTRIM(Field2)
HeaderText="Fnz">
</ww:wwWebDataGridColumn>
...
Thank you very much