Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How can I display a 9 digit zipcode in a Datagrid with a hypen

Reply
Thread Tools

How can I display a 9 digit zipcode in a Datagrid with a hypen

 
 
Jeff Thur
Guest
Posts: n/a
 
      02-17-2005
The ZipCode column in my database is a 9 digit code with
no hypen between position 5 and 6 (eg: 123456789) I need
the user to see the results in the datagrid as 12345-
6789. How can this be accomplished. Thanks for any help.
 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      02-17-2005
handler the itemdatabound event, find the cell and either apply a regular
expression to the text or insert a hyphen at the specified position

--
Regards,
Alvin Bruney [Microsoft MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ http://www.lulu.com/owc
----------------------------------------------------------


"Jeff Thur" <(E-Mail Removed)> wrote in message
news:270c01c514c9$19c0e0a0$(E-Mail Removed)...
> The ZipCode column in my database is a 9 digit code with
> no hypen between position 5 and 6 (eg: 123456789) I need
> the user to see the results in the datagrid as 12345-
> 6789. How can this be accomplished. Thanks for any help.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
(8-bit binary to two digit bcd) or (8-bit binary to two digit seven segment) Fangs VHDL 3 10-26-2008 06:41 AM
[YO] Free Swingers Search, See Pics, Read Stories, Search Via Zipcode! Swin4Real Mon Computer Support 0 11-23-2004 03:20 AM
[OT] Free Swingers Search, See Pics, Read Stories, Search Via Zipcode! Joe Deluga Computer Support 0 11-17-2004 05:19 AM
ZIPCODE DB ACCESS TO SQL DaveF ASP .Net 6 09-29-2004 11:44 PM



Advertisments