473,473 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Align Datagrid Headers and Detail

Hi All,

I am having a little trouble aligning information in my Datagrid, what I
want to do is align the Header text of a column to the left but the detail
information of this column to the right.

I can align a whole column (header and detail) but can not seperate the two.

Any Ideas?

Thanks
Nov 16 '05 #1
2 2104
Bill,

DataGridColumn.HeaderStyle allows you to configure the header style

and

DataGridColumn.ItemStyle allows you to configure the item style

HTH

Ollie Riches

"Bill Gates" <BG****@microsoft.com> wrote in message
news:#J**************@tk2msftngp13.phx.gbl...
Hi All,

I am having a little trouble aligning information in my Datagrid, what I
want to do is align the Header text of a column to the left but the detail
information of this column to the right.

I can align a whole column (header and detail) but can not seperate the two.
Any Ideas?

Thanks

Nov 16 '05 #2
Thanks for this,

does this work for Windows Forms? can not seem to find the HeaderStyle!

doing my head in....Grrrr!!!!!

Thanks

"Ollie Riches" <ol**********@hotmail.com> wrote in message
news:OT**************@TK2MSFTNGP10.phx.gbl...
Bill,

DataGridColumn.HeaderStyle allows you to configure the header style

and

DataGridColumn.ItemStyle allows you to configure the item style

HTH

Ollie Riches

"Bill Gates" <BG****@microsoft.com> wrote in message
news:#J**************@tk2msftngp13.phx.gbl...
Hi All,

I am having a little trouble aligning information in my Datagrid, what I
want to do is align the Header text of a column to the left but the
detail
information of this column to the right.

I can align a whole column (header and detail) but can not seperate the

two.

Any Ideas?

Thanks


Nov 16 '05 #3

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

Similar topics

0
by: Tim McElmurry | last post by:
I have an application that has a DataGrid inside of a Div tag that allows the user to scroll up/down and also left/right. The problem is our users want to have the headers displayed at all times....
5
by: Ben | last post by:
Is there any way to freeze the DataGrid headers so that the headers are always viewable while srolling down? Thanks in advance, Ben!
0
by: Eric | last post by:
Hello, I have a datagrid with sorting enabled. When clickong on the colum names in the header the datagrid is sorted no problem. Unfortunatly, I have a graph that needs to be generated for each...
4
by: IGotYourDotNet | last post by:
on my web app, i need to display data from a table in a grid. (i know how to do that). The grid will be populated with data depending on what the user selects in a drop down box. My question is...
0
by: sunshinevaldes | last post by:
Hello all and thank you for your time. The problem I have is when the datagrid has the scrollbar, all the column headers are aligned. However, if there is only a couple records displaying and...
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...
3
by: Gidi | last post by:
Hi, I've a dataGrid, and When I click with the mouse on one of it's header the DataGrid_Click event is called. I don't have problem with the event, but strange things happen to the dataGrid...
0
by: Finn Stampe Mikkelsen | last post by:
Hi Is there an easy way of having seperate alignment for Column headers and the actual columns in each row... It would be great to have headers centered, but individual columns left or right...
2
by: jvdub22 | last post by:
I have a vb.net windows form application that has two datagrids on it that have a master - detail relationship. The underlying database is an sql database. The application works fine when I first...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.