asp.net gridview set format for unbound field
Posted
by Iulian
on Stack Overflow
See other posts from Stack Overflow
or by Iulian
Published on 2010-05-14T15:11:31Z
Indexed on
2010/05/14
15:14 UTC
Read the original article
Hit count: 410
i have a gridview populated by the code below:
protected void CautaProiect_Click(object sender, EventArgs e)
{
wipDBTableAdapters.GetSummaryProiectTableAdapter proiecte = new wipDBTableAdapters.GetSummaryProiectTableAdapter();
SummaryGrid.DataSource = proiecte.GetData(CodProiect.Text);
SummaryGrid.DataBind();
}
The gridview will be populated with some columns with values.
The problem is that the values are formated like this 1234.5600
and i want them to be like 1,234.56
How ca i do this ?
© Stack Overflow or respective owner