<%# ((Convert.ToInt32(DataBinder.Eval(Container.DataItem, "LeadTime"))) > 0) ? "+" + DataBinder.Eval(Container.DataItem, "LeadTime") : " "%>
I have modified the Stored Procedure to Include a Column called "LeadTime".DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'LeadTime'.
<asp:TemplateColumn SortExpression="ModelNumber" HeaderText="Product<br/>Code">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Width="100"></ItemStyle>
<ItemTemplate>
<span class="leadtime">
<%# ((Convert.ToInt32(DataBinder.Eval(Container.DataItem, "LeadTime"))) > 0) ? "+" + DataBinder.Eval(Container.DataItem, "LeadTime") : " "%>
</span>
<asp:label id="ProductID" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "ProductID") %>' />
<%# ((bool)DataBinder.Eval(Container.DataItem, "AdItem")) ?
(DataBinder.Eval(Container.DataItem, "Quantity")==DBNull.Value || ((int)DataBinder.Eval(Container.DataItem, "Quantity"))<1) ?
"<font color=red><b>$</b></font>" : "<font color=green><b>$</b></font>"
: "" %>
</ItemTemplate>
</asp:TemplateColumn>
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE