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  Python code snippet - How to access dictionary inside an array ?

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.