How to control the horizontal position of a column in DataGrid

A

ad

The horizontal position of a column in a DataGrid always is left.
Can we change it to center of right?
 
R

Rick Strahl [MVP]

You can configure each column in the datagrid with Data Grid properties
builder in VS. Look on the Format page and then find items and set the
formatting for your field.

If you're not using VS you can manually set the ItemStyle and HeaderStyle
object and hte horizontalalign attributes.

+++ Rick ---

--

Rick Strahl
West Wind Technologies
www.west-wind.com
www.west-wind.com/weblog
 
A

ad

I am using VS.NET.
I want the charater field align to left, and digit fields aling to right.
How can I set the formating to my field?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top