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

  • SEARCH
  • Home
  • 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

Related Questions

I have a working application which gets the GPS Long/Lat of from a BlackBerry
We have our gwt application working fine on the development mode with gwt 2.4rc1
I have an working application. Now I want to change the table names of
I have a working application using python and zeromq and I would like to
Now that I have a read-only application working, I am working on the insert
My Android application was working in English and I have to provide the users
for the application I am working on I have to generate consolidated report where
i have used progress bar in my application..my application is working fine but the
I'm building a WPF application and working with the MVVM pattern. I have 4
I am working on splitting out an existing, working application that I currently have

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.