formato numero en gridview de asp.net en tiempo de ejcución

for (int j = 1; j < gvNewFiles.HeaderRow.Cells.Count; j++) { for (int i = 0; i < gvNewFiles.Rows.Count; i++) { gvNewFiles.Rows[i].Cells[j].Text = string.Format("{0:0.00}", Convert.ToDouble(gvNewFiles.Rows[i].Cells[j].Text)); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.