Ajith. K .P
Ajith. K .P

Reputation: 185

How to align Column Header Text in to left Datagridview Windows Form C#

enter image description here[![enter

How to align header text in left, any one help

Upvotes: 2

Views: 1650

Answers (1)

Jonidas
Jonidas

Reputation: 187

Try playing with the padding of the header and the rows:

this.ColumnHeadersDefaultCellStyle.Padding = new Padding(0);
this.RowsDefaultCellStyle.Padding = new Padding(5);

Upvotes: 4

Related Questions