Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Multiple fields in WebDataGrid

$
0
0
Re: Multiple fields in WebDataGrid
Web Connection 5.0
Re: Multiple fields in WebDataGrid
06/08/2012
07:39:58 AM
3IS1FFRFL Show this entire thread in new window
Gratar Image based on email address
From:
Geoff Bannoff
To:
Attachments:
None
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



Viewing all articles
Browse latest Browse all 10393

Trending Articles