473,382 Members | 1,480 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,382 software developers and data experts.

Datagrid Text Allignment

Hi,
two datagrid questions.

1: how can i allign the column header text i.e. have it centered.
the data fields are aligned with HorizontalAligment.xxx and that
works... but on the header.?

2: Is it possible to have colum header and contents differently allinged.

Thanks
Alex

Nov 20 '05 #1
1 1393
Hi,

(assuming the Windows Forms data grid)

Short answer to both of the questions: No, you can't
The long answer: You probably can if you completely override the grid's
paining routine and paint column headers yourself.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"alex" <ai******@hotmail.com> wrote in message
news:u5****************@TK2MSFTNGP09.phx.gbl...
Hi,
two datagrid questions.

1: how can i allign the column header text i.e. have it centered.
the data fields are aligned with HorizontalAligment.xxx and that
works... but on the header.?

2: Is it possible to have colum header and contents differently allinged.

Thanks
Alex


Nov 20 '05 #2

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

Similar topics

1
by: Anthony | last post by:
Hi, I've got a question about the allignment of data in a structure. What happens in memory when i declare the following struct A { int x; } stuct B : public A {
1
by: Aitham alama | last post by:
How can i make a dynamically created web label control to to be Center allignment Thanks
1
by: =?Utf-8?B?S3VuYWwgUGF0ZWw=?= | last post by:
In my datagrid (datasource is DataTable) all my double values are intended towards left . how do i set it to right allignment. which property shall i set and how do i display double value up to...
1
by: prpradip | last post by:
In my application ListView is inside panel (XP theme enable), item text in the ListView control overlaps other items in small icon view. The items are drawn as if aligned to a grid and this causes...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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...

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.