vertically aligning text in a datagrid

i am making a datagrid with vb.net.  the text automatically centers in each cell, vertically.  how can i make the text stay at the to of each cell?
bdietzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

amit_gCommented:
Add ItemStyle-VerticalAlign="Top" in the DataGrid tag.
SunBowCommented:
For any language, often changing font to fixed, rather than proportional can help, especially if a column has a field that is formatted. Courier is my preferred, but there's other notions for doing in with html output.

>  how can i make the text stay at the to of each cell?

oh (oops) I think I bow out. I've never liked it at the top, never. Bottom maybe. When the first row runs too close to subtitles, my eyes have trouble picking it out. I also recommend text aligned left and numerics to right. Only center subtitles or fields having fixed length and fixed font. This wouldn't be homework, would it? Durn teachers.
SunBowCommented:
?
Questions Asked 20
Questions Deleted 9
SunBowCommented:
Only 500 point questions asked, no matter the difficulty, and of the few actually reaching solutions, about all of them are force accepted due to being classified an abandoned.

This is not appropriate for this community.

:-((                                                                             :-((

Bye
                               <unsubscribing>
ecc204Commented:
Go to the design pane (where the page is open in design mode as opposed to the HTML Source),  Click on the datagrid, click "Properties Builder," or right-click the grid and then select "Properties Builder."

In Properties Builder, in the left pane, click "Format."  In the middle pane click "Items."  Expand items. Highlight the item you want and set the format in the right pane.  You can do the same thing with "Columns."  When you pick "Items," you are making a row-wide selection.  When you go through columns, you can format by column.

If none of these work for you, you can bring the data into your code, using

        <%# DataBinder.Eval(Container.DataItem, [DataName], [Format String]) %>  

and then format it and return it to the grid.  If you want an example of that, let me know.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.