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

DataTextFormatString = "{0:D2}" not working

P: n/a

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:
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

can anyone help?

*** Sent via Developersdex ***
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.