Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

DataGrid Column HorizontalAlignment Issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fleckman - 17 Sep 2004 06:15 GMT
I'm using GridColumnStyles to define the columns of a DataView I want
displayed. I want some of the columns to display the data as right justified.
I use the HorizontalAlignment.Right enumeration to set the alignment for the
column. All works fine except that the column descriptions are being clipped.
The last character is often not visible or only partly visible. Is there a
fix for this problem?

Thanks in advance.
ClayB [Syncfusion] - 17 Sep 2004 09:03 GMT
Just a simple work-around suggestion. Maybe adding a space to the HeaderText
as you set up your column styles will avoid the problem.

=========================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools

> I'm using GridColumnStyles to define the columns of a DataView I want
> displayed. I want some of the columns to display the data as right
[quoted text clipped - 7 lines]
>
> Thanks in advance.
Fleckman - 17 Sep 2004 16:59 GMT
I previously tried a space but it made no difference. I've since tried adding
a period (.)  at the end and that works fairly well. It's effectivenss
depends on the pixel width of the last character. In the cases I've tried the
period doesn't show but the last character does except when there is a wide
last character like 'y'. In this case part of the period shows, but only a
pixel width, so it's not too noticeable.

So is this a known issue? When it is fixed I'll just have to update the
column header text to remove my periods. Not a terrible work around.

> Just a simple work-around suggestion. Maybe adding a space to the HeaderText
> as you set up your column styles will avoid the problem.
[quoted text clipped - 15 lines]
> >
> > Thanks in advance.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.