c#, How can i print in Datagridview each row center? -


i want print string datagridview.

i use code.

datagirdview.rows.insert('rownumber', 'string'); 

so, how can print string in datagridview each row center?

you looking datagridviewcellstyle.alignment property

gets or sets value indicating position of cell content within datagridview cell.

also check datagridviewcontentalignment enumeration


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -