Hi there
I'm trying to add rows to a GridViewDecimalColumn with leading zeros. I know there's a property "FormatString" but this is not exactly what I want. I want the numbers always have the same amount of zeros leading. Here you can see my code:
GridViewDecimalColumn col =
new
GridViewDecimalColumn();
col.FormatString =
"{0:0000}"
;
radGridView1.Columns.Add(col);
This will output the following:
Number 1 will be 0001
Number 2 will be 0002
Number 10 will be 0010
Number 100 will be 0100
But what I'm trying to achieve is:
Number 1 should be 0001
Number 10 should be 00010
Number 100 should be 000100
etc.
Is this possible? Hope you can help me.
Regards,
Danilo