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 6864263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:53:22+00:00 2026-05-27T02:53:22+00:00

I use the SQL Management Studio for create database I create a table and

  • 0

I use the SQL Management Studio for create database
I create a table and create columns of table
Names of columns are on the English language like “test_ID”

in the server side when run a query(linq to sql) and got the dataTable result
server send that dataTable to client side

In the side client, I set the dataTable to a DataGridView
When DataGridView show that table, caption columns are same names columns that I create in the SQL management for my table

but I want show a another text(caption ) for columns with another language (for example my column name is “Test_Id” but a caption text for column that i want show to the DGV is “شمارنده” In the Farsi language)

and I don’t set text Columns(or caption ) in the client side, I want set a label text(caption ) for all columns in the SQL management.

in the T-SQL under syntax is true

select yourFirstColumn as TheColumnNameYouWant1, yourSecondColumn as TheColumnNameYouWant2
from yourTable

but i whant a Answer In the linq express (Lambda express)
like sample code:

var obj2 = GP.TestTables.Select(x => new {  x.name  });

i can alias column like this

var obj2 = GP.TestTables.Select(x => new {  **alias1** = x.name  });

but Without combine works sample

var obj2 = GP.TestTables.Select(x => new { ***name of company*** =  x.name  });

How can I do that?

  • 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-27T02:53:23+00:00Added an answer on May 27, 2026 at 2:53 am

    Use column aliases to set the field names in your queries like so:

    select yourFirstColumn as TheColumnNameYouWant1, yourSecondColumn as TheColumnNameYouWant2
    from yourTable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can use the sql server management studio to open a sqlserver 2000 database,
I usually do not use Sql Server Management Studio, I usually use Linqpad to
In our SQL Server 2005 database (tested using Management Studio with DBCC FREEPROCCACHE and
I'm using SQL Server 2005 and I only can use Management Studio (it's a
In SQL Server Management Studio, there is an option to set the default database
I use SQL Server 2005. I have a simple logging table that my web
Has anyone attempted to use SQL Server Database as a Subversion file system back
I can connect to remote SQL Server database and I want to create a
I'm currently trying to create FULLTEXT indexes into my database (Microsoft SQL Server 2005).
We have a SQL server database. To manipulate the data non-programmatically, I can use

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.