By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

DataTextFormatString = "{0:D2}" not working

P: n/a

hi,
I want to populate a dropdownlist from an array of integers
of two digit maximum.
suppose we have these numbers 1, 2 , 15 ,....
i want the numbers to be displayed in this format:
01,02,15....
so I was using the DataTextFormatString property, but I couldn't reach
the desirable result.

According to the SDK documentation,
DataTextFormatString = "{0:D2}" should resolve the probem.
but it doesn't. it's generating a System.FormatException: Format
specifier was invalid. I tried other formats using F, G... but i
couldn't get the wanted result but at least they didn't generate an
exception.

can anyone help?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.