J
Jesper Stocholm
I have a WinForm datagrid that receives data from a DataSet. One of the
colums is anm INT-column from the database, and I would like to format
these INTs before binding them to the control.
I format the grid by applying a style to it, and I have seen in the doc
that there on the object DataGridTextBoxColumn is a property called
..Format, that I have a feeling might be usefull to me.
I need to prefix the ints with zeros so that the result is like
210343 -> 210343
123 -> 000123
How you I create a format string that will do this for me?
Can you guys give me a hint on this?
colums is anm INT-column from the database, and I would like to format
these INTs before binding them to the control.
I format the grid by applying a style to it, and I have seen in the doc
that there on the object DataGridTextBoxColumn is a property called
..Format, that I have a feeling might be usefull to me.
I need to prefix the ints with zeros so that the result is like
210343 -> 210343
123 -> 000123
How you I create a format string that will do this for me?
Can you guys give me a hint on this?