PC Review


Reply
Thread Tools Rate Thread

Custom painting of DataGrid column headers

 
 
The_Assimilator
Guest
Posts: n/a
 
      16th Feb 2006
The DataGrid control that ships with .NET 1.1 has an annoying problem:
if you apply a DataGridTableStyle to a DataGrid and set one of the
columns of the TableStyle to be right-aligned, the column header text is
cut off the right-hand end of that column when it is displayed.

Is there any way to fix this problem, perferably without attempting
custom painting and/or the use of reflection to get at DataGrid's
private members?

(Note: I know that .NET 2.0 ships with the DataGridView class, which
supposedly offers a great deal more in the way of visual customisation.
However, I am not going to upgrade to .NET 2.0 just for the sake of one
crappy control.)
 
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
custom row headers in DataGrid Doug Crawford Microsoft Dot NET Compact Framework 0 25th Apr 2007 02:19 AM
datagrid custom headers with more than 1 row in header =?Utf-8?B?c2VudGhpbA==?= Microsoft ASP .NET 2 8th Aug 2004 02:36 PM
Painting DataGrid Column Headers in WinForms (C#) John Smith Microsoft Dot NET Framework Forms 0 8th Dec 2003 10:25 PM
DataGrid Column Headers ElenaR Microsoft VB .NET 1 21st Oct 2003 08:57 PM
DataGrid column header text painting problem Shravan Kumar Microsoft C# .NET 3 21st Oct 2003 04:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 AM.