How to control the horizontal position of a column in DataGrid

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

The horizontal position of a column in a DataGrid always is left.
Can we change it to center of right?
 
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
 
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

Back
Top