Esempio n. 1
0
 void currency_FormatColumn(object sender, FormatColumnEventArgs e)
 {
     Single incomingvalue;
     string outgoingValue;
     incomingvalue = Convert.ToSingle(e.Originalvalue);
     outgoingValue = String.Format("{0:C}", incomingvalue);
     e.StringValue = outgoingValue;
 }
Esempio n. 2
0
 public string GetString(object var)
 {
     FormatColumnEventArgs e = new FormatColumnEventArgs();
     e.Originalvalue = var;
     e.StringValue = Convert.ToString(var);
     FormatColumn(this, e);
     return e.StringValue;
 }