Hello all,
I have a datagrid that I am binding to a data set and I need to be able to display some of the columns in a currency type format...ie 3 -> 3.00 or 0 -> 0.00 .
Any ideas?? I've been trying to force the column to do this by using
valid.ModNum is a function that should return a string in the correct format...however I have to convert it to a double to repopulate the dataset, so I use the .ToString("##.00") to force it. This works for some numbers, but 0 always just shows up as 0....I'm getting a little irritated with this, so any ideas would be great!
Thanks in advance!
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
I have a datagrid that I am binding to a data set and I need to be able to display some of the columns in a currency type format...ie 3 -> 3.00 or 0 -> 0.00 .
Any ideas?? I've been trying to force the column to do this by using
Code:
Convert.ToDouble(valid.ModNum(e.Row[11].ToString())).ToString("##.00")
valid.ModNum is a function that should return a string in the correct format...however I have to convert it to a double to repopulate the dataset, so I use the .ToString("##.00") to force it. This works for some numbers, but 0 always just shows up as 0....I'm getting a little irritated with this, so any ideas would be great!
Thanks in advance!
Kevin
- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.