Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i running my windows application my forms tables are displaying left side.i wand to display all item r in middle...how to do this?
Posted

1 solution

If you mean you want to centre the text in your tables, then assuming you are using a DataGridview, set the column style:
C#
myDateGridView.Columns[myColumnIndex].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
If that isn't what you are talking about then we need better information!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900