PC Review


Reply
Thread Tools Rate Thread

Align Datagrid Headers and Detail

 
 
Bill Gates
Guest
Posts: n/a
 
      7th Feb 2005
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


 
Reply With Quote
 
 
 
 
Ollie Riches
Guest
Posts: n/a
 
      7th Feb 2005
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" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Bill Gates
Guest
Posts: n/a
 
      7th Feb 2005
Thanks for this,

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

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

Thanks

"Ollie Riches" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
>> 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
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add and align pictures and text in headers Erin H. Microsoft Excel Misc 0 14th May 2009 05:48 PM
How to add and align pictures and text in headers Erin H. Microsoft Excel Misc 0 14th May 2009 05:48 PM
How do I align text boxes in headers? =?Utf-8?B?bHlubmVlYmVl?= Microsoft Word Document Management 1 4th Aug 2006 12:20 AM
Master-Detail DataGrid with conditional (detail) formatting John Sitka Microsoft Dot NET Framework Forms 0 4th Nov 2005 08:50 PM
Filtering the Detail Datagrid in a Master Detail Relationship =?Utf-8?B?Qm9i?= Microsoft ADO .NET 1 19th Dec 2004 08:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 AM.