473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

DataGrid Column Headers


Hi All;

I have one datagrid control on which o show some of my database tables.
My trouble is that my column names on my table are not so good for customers
to understand.
So I must use more understandable names on my datagrids column headers
instead of column names.
Is there a way of changing column header names of one datagrid and showing
good expalanations there ?

For example in my country table, I have CntId,CntName and on datagrid I
would like to show
Country Id and Country Name

Helps'll be appreciated..
Ahmet

Nov 15 '05 #1
2 5324
There's two way to do this.

1st :
By SQL SELECT CntId as [Country Id ],CntName as [Country Name] FROM ...
WHERE...

2nd create a TableStyle
"Ahmet AKGUN" <ak*********@hotmail.com> wrote in message
news:OW*************@TK2MSFTNGP11.phx.gbl...

Hi All;

I have one datagrid control on which o show some of my database tables.
My trouble is that my column names on my table are not so good for customers to understand.
So I must use more understandable names on my datagrids column headers
instead of column names.
Is there a way of changing column header names of one datagrid and showing
good expalanations there ?

For example in my country table, I have CntId,CntName and on datagrid I
would like to show
Country Id and Country Name

Helps'll be appreciated..
Ahmet

Nov 15 '05 #2

thanks..

"mario" <MS*****@paradox.ca> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
There's two way to do this.

1st :
By SQL SELECT CntId as [Country Id ],CntName as [Country Name] FROM ...
WHERE...

2nd create a TableStyle
"Ahmet AKGUN" <ak*********@hotmail.com> wrote in message
news:OW*************@TK2MSFTNGP11.phx.gbl...

Hi All;

I have one datagrid control on which o show some of my database tables.
My trouble is that my column names on my table are not so good for

customers
to understand.
So I must use more understandable names on my datagrids column headers
instead of column names.
Is there a way of changing column header names of one datagrid and showing good expalanations there ?

For example in my country table, I have CntId,CntName and on datagrid I
would like to show
Country Id and Country Name

Helps'll be appreciated..
Ahmet


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Billy Jacobs | last post by:
I am using a datagrid to display some data. I need to create 2 header rows for this grid with columns of varying spans. In html it would be the following. <Table> <tr> <td colspan=8>Official...
8
by: DraguVaso | last post by:
Hi, I want to override the MyBase.OnPaint(ByVal pe As System.Windows.Forms.PaintEventArgs) of the DataGrid, to have some custom property's designed (other column headers etc). The problem is...
4
by: Randy | last post by:
I have a DataTable in a DataGrid. If I click on the DataGrid, HitTestInfo in dataGrid1_MouseDown returns a Row and Column number. I can use the Row number to say: DataRow dr = dataTable.Rows;...
1
by: ElenaR | last post by:
I need to figure out how to name my column headers in a DataGrid. In VB6, I could write DataGrid1.Columns(0).Caption = "ID". What is the format for VB.NET? Thanks in Advance!
4
by: skOOb33 | last post by:
I successfully autosized the columns and rows on my Datagrid, and am now facing another issue. Having the sorting ability by clicking the column headers is key, but when I do that, it resizes all...
4
by: Jeff | last post by:
I am stuck on trying to generate two columns headers for a datagrid on form load. I can use a datatable as the datasource and get the results I want, but I want to set different column widths and...
2
by: John Walker | last post by:
Hi, We have a datagrid with column headers. If the datagrid has more than say 25 rows the user needs to scroll down to be able to see the rest of the grid. When the user does this the column...
4
by: cooltech77 | last post by:
Hi, I am trying to build the following functionality in the datagrid. I have a lot of columns in the datagrid which are being populated from the database and the user needs to scroll...
0
by: kaushik.jaimalani | last post by:
Hi W3 Priority 1 checklist points for Table Header 5.2 For data tables that have two or more logical levels of row or column headers, use markup to associate data cells and header cells. ...
0
by: rn5a | last post by:
A DataGrid control displays records from a SQL Server 2005 DB table. The AllowSorting property of the DataGrid has been set to True & the SortExpressions of the BoundColumns have been set to the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.