Kun to decimaler
Hejsa,Jeg har nedenstående kode, hvor jeg har behov for at col kolonnen kun bliver vist med to decimaler. Lige nu bliver den vist med 3. Hvordan får jeg det ændret?
if (api.GetInvoiceLineList(Convert.ToInt32(txtNewInvoiceNo.Text), ref InvoiceLineList) == FaktureringApi.FStatus.Success)
{
DataColumn col = new DataColumn("RaekkeBeloeb");
col.DataType = typeof(System.Decimal);
col.Expression = "Antal*PrisExMoms";
//add the colums
InvoiceLineList.Columns.Add(col);
grdNewInvoice.DataSource = InvoiceLineList.DefaultView;
grdNewInvoice.DataBind();
}
mvh
simsen :-)