DataGridColumnStyle Format Property

G

Guest

One of the columns of my datagrid is an account #. The actual field which is
coming from a sql server database is defined as a character. Within the
database the account # 200300001 come across in our financial system as
20030000.1. How do I define a character field format, as an example
(XXXXXXXX.X), in the datagridcolumnstyle format property using the designer?
Currently I can format numeric fields in the a datagridcolumnstyle format
property with, as an example, "###,##0.00".
Thanks in advance.
 
O

Otis Mukinfus

One of the columns of my datagrid is an account #. The actual field which is
coming from a sql server database is defined as a character. Within the
database the account # 200300001 come across in our financial system as
20030000.1. How do I define a character field format, as an example
(XXXXXXXX.X), in the datagridcolumnstyle format property using the designer?
Currently I can format numeric fields in the a datagridcolumnstyle format
property with, as an example, "###,##0.00".
Thanks in advance.
{0:00000000.0} AFTER you convert it to a number, but I don't think you can
convert it to a number in the designer. There's probably an event you can catch
that will allow you to do special formatting.

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top