T
tfs
I am reading into a datagrid and can't seem to get the "execution
time" column (the 3rd column) to move to the right.
My problem is that the last character in the 2nd column is right up
against the end of the column and the 3rd column is too close and
confusing. So I was trying to move the data in the 3rd column over a
few spaces.
So I did the following:
SELECT tableName,startTime,executionTime = replicate(' ',6) +
convert(char(10),Round((executionTime /
60),2)),numRecordsCopied,numRecordsInError FROM VDW..xferstats
This works fine in the SQL Query in the table view and it does move
the data to the right a few places. When I run this in my web page
with the following datagrid, the text has all the leading spaces
truncated:
Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" />
/>
/>
Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" />
/>
If I change the replicate(' ',6) to replicate('0',6), it shows the
leading 0's fine.
How do I get this to work, if it is even possible?
Thanks,
Tom
time" column (the 3rd column) to move to the right.
My problem is that the last character in the 2nd column is right up
against the end of the column and the 3rd column is too close and
confusing. So I was trying to move the data in the 3rd column over a
few spaces.
So I did the following:
SELECT tableName,startTime,executionTime = replicate(' ',6) +
convert(char(10),Round((executionTime /
60),2)),numRecordsCopied,numRecordsInError FROM VDW..xferstats
This works fine in the SQL Query in the table view and it does move
the data to the right a few places. When I run this in my web page
with the following datagrid, the text has all the leading spaces
truncated:
BackColor="#E8EBFD" ForeColor="#3D3DB6" Font-Name="Verdana, Arial,<aspataGrid AllowPaging="false"
AllowSorting="False"
AutoGenerateColumns="false"
CellPadding="3"
CellSpacing="0"
DataSource="<%# DataSet1.DefaultView %>" ID="DataGrid1"
runat="server"
ShowFooter="false"
ShowHeader="true"
<HeaderStyle HorizontalAlign="center"
Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" />
Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller"<ItemStyle BackColor="#F2F2F2"
/>
Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller"<AlternatingItemStyle BackColor="#E5E5E5"
/>
BackColor="#E8EBFD" ForeColor="#3D3DB6" Font-Name="Verdana, Arial,<FooterStyle HorizontalAlign="center"
Helvetica, sans-serif" Font-Bold="true" Font-Size="smaller" />
Font-Name="Verdana, Arial, Helvetica, sans-serif" Font-Size="smaller"<PagerStyle BackColor="white"
/>
<Columns>
<asp:BoundColumn DataField="tableName"
HeaderText="Table Name"
ReadOnly="true"
Visible="True"/>
<asp:BoundColumn DataField="startTime"
HeaderText="Start Time"
ReadOnly="true"
Visible="True"/>
<asp:BoundColumn DataField="executionTime"
HeaderText="Execution Time"
ReadOnly="true"
Visible="True"/>
<asp:BoundColumn DataField="numRecordsCopied"
HeaderText="Processed"
ReadOnly="true"
Visible="True"/>
<asp:BoundColumn DataField="numRecordsInError"
HeaderText="Errors"
ReadOnly="true"
Visible="True"/>
</Columns>
</aspataGrid>
If I change the replicate(' ',6) to replicate('0',6), it shows the
leading 0's fine.
How do I get this to work, if it is even possible?
Thanks,
Tom