Skip to content

CSS code snippet – asp net How to change text alignment of gridview column?

protected void GridView1_DataBound(object sender, EventArgs e)
        GridView1.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;
See also  How to resize image in Java swing?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.