Change the alignment of data from datagridview
Here is the code to Change vertical and horizontal alignment of data in the single column from datagridview.
Code is useful in Windows Based C# application:
Here 0 stand for Column Index, You can change it as per your requirement.
And 'MiddleLeft' is used to set 'Vertical Alignment' of data in middle
and 'Horizontal Alignment' of data at left side.
dataGridView1.Columns.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft;