I am trying to format the date fields coming from the database in MM/DD/YYYY format but adding the dateformatstring to the boundcolumn does not seem to be working.
The code for the column is
<asp:BoundField DataField="Created" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Created" SortExpression="Created" />
and I am binding to a typedlist in code as follows
protected void BindData(ISortExpression sorter, IPredicateExpression filter)
{
eFinancials.TypedListClasses.InvoiceGridTypedList invoices = new eFinancials.TypedListClasses.InvoiceGridTypedList();
invoices.Fill(0, sorter, false, filter);
this.GridView1.DataSource = invoices;
this.GridView1.DataBind();
}
Any ideas why the formatting is not working? Does it have to do with the design-time issues with the gridview with the current version of LLBLGEN?
Thanks,
Dave