Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 300473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:55:02+00:00 2026-05-12T06:55:02+00:00

In the application I am working on, I have a TableAdapter, and a RadGridView

  • 0

In the application I am working on, I have a TableAdapter, and a RadGridView (Telerik control – their version of the DataGridView). The TA is pulling different elements from our database, including PhoneNumber, which is stored as varchar.

In my GridView, I would like to display this format as (123) 456-7890. Unfortunately, I have been unable to accomplish this.

I have tried the following (which is Telerik’s recommended method):

radGvUsers.Columns["PhoneNumber"].FormatString = "{0: (###) ###-####}";

This results in the value displaying as it does in the db: 1234567890

I know (ok, I think) this is because it is stored as varchar and needs to be converted to a number, but I don’t know how or where (i.e. at the TA or GridView level) best to do this.

Any suggestions? Feel free to ask more questions if I did not supply enough info!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T06:55:03+00:00Added an answer on May 12, 2026 at 6:55 am

    You can convert the string to a numeric in the SQL Statement

    Select Convert(bigint, PhoneNumber) AS PhoneNumber FROM sometable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 272k
  • Answers 272k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I've found them both to be ok, but I'd choose… May 13, 2026 at 1:52 pm
  • Editorial Team
    Editorial Team added an answer Strictly speaking, a least squares fit is not defined for… May 13, 2026 at 1:52 pm
  • Editorial Team
    Editorial Team added an answer Right: each call to Timer does start a new thread.… May 13, 2026 at 1:52 pm

Related Questions

One of the new features in ASP.NET MVC 2 Preview 1 is support for
Greetings, In the application that I am working on, I have a long-running process
I have a quick and hopefully simple question that I hope someone can help
In order to make a convenient UI for an .Net 2.0 Winforms application I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.