B
Burt
My GridView won't format! See code below, I've got HtmlEncode turned
off, and still nothing works...the GV just has the raw data. Pulling
my hair out over this. Could it be because I'm building the source
(DataTable) dynamically? Thanks for any help. Using .Net 2.0, VS 2005,
VB - Burt
<asp:GridView id="dataGridResults" runat=server
AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="Gross Return" HtmlEncode="false"
HeaderText="Gross Return" DataFormatString="{0:#,##0.00}"/> </Columns>
</asp:gridview>
Dim dt As New DataTable
dt.Columns.Add("Gross Return")
For Each Y As Year In u.Years
dr = dt.NewRow()
dr("Gross Return") = py.EndValue
..
..
..
dataGridResults.DataSource = dt
dataGridResults.DataBind()
off, and still nothing works...the GV just has the raw data. Pulling
my hair out over this. Could it be because I'm building the source
(DataTable) dynamically? Thanks for any help. Using .Net 2.0, VS 2005,
VB - Burt
<asp:GridView id="dataGridResults" runat=server
AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="Gross Return" HtmlEncode="false"
HeaderText="Gross Return" DataFormatString="{0:#,##0.00}"/> </Columns>
</asp:gridview>
Dim dt As New DataTable
dt.Columns.Add("Gross Return")
For Each Y As Year In u.Years
dr = dt.NewRow()
dr("Gross Return") = py.EndValue
..
..
..
dataGridResults.DataSource = dt
dataGridResults.DataBind()