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

column alignment in datagrid

Hello,

Why, when I right-align a column in a datgrid, do the headers cut off on the
right?
I can't figure out how to fix this...
Can I put some type of buffer?
I'm using te visual editor to add/edit the datagrid.

Cheers,
Amber

Oct 4 '05 #1
1 1279
Hi!
Why, when I right-align a column in a datgrid, do the headers cut off on the
right?
I can't figure out how to fix this...
Can I put some type of buffer?
I'm using te visual editor to add/edit the datagrid.


I've spend a lot of time investigating this issue - no good solution
found, but see this thread:

http://dotnet247.com/247reference/msgs/36/180459.aspx

The simplest solution, as you can see, is to add a dot ('.') at the very
end of a string. Don't ask my why... it's M$ - it's about to be sold, not
working :/

Best regards,
Piotrek

Oct 5 '05 #2

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

Similar topics

0
by: cnu | last post by:
Hi, Can anybody tell me how to align the column header in windows forms datagrid control? Thanks.
6
by: Barney Nicholls | last post by:
I have a datagrid and want to change the background color of the end column to denote that it is the only column that is not read only. I still want this column to be editable. I've found...
1
by: nemo | last post by:
I'm creating a datasource and populating a datagrid at runtime. The code is as follows: dt = New DataTable dt.Columns.Add(New DataColumn("Item", GetType(String))) dt.Columns.Add(New...
2
by: jobi | last post by:
Hi, in VB6 I formatted gridcolumns like this : If UCase(oRSOverview(Ix).Name) = "KBINDEX" Then Me.GrdOverview.Columns(Ix).Alignment = 1 Me.GrdOverview.Columns(Ix).NumberFormat =...
7
by: Earl | last post by:
Any known fixes for the wacky right-alignment bug in the WinForms datagrid (VS2003)? I've tried Ken's workaround...
2
by: kieran | last post by:
Hi, I have the following datagrid with manually entered rows. I want to align the values of the second column only - 'more tax' - to the center, but i can not seem to do this. The first column...
0
by: Grant_S | last post by:
Can anyone help with a code snippet to right align a single column in the standard Visual studio 2003 datagrid? I need to do this alignment manipulation in code and therefore not able to set...
5
by: Roger | last post by:
I am trying to do a 'simple' task in a DGV control. The problem is this. I have an unbound DGV with all 'AllowUser' options disabled. RowHeader.Visible=False ColumnHeader.Text is labelled as...
0
by: Claire | last post by:
Hi, Visual Studio 2003 The application Im writing is skinned and therefore i need to be able to write my own code for manipulating and drawing headers for a data grid outside of the control. I...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.