.NET GridView - Can you right-align just one column?

后端 未结 6 1828
夕颜
夕颜 2021-01-02 01:21

Can you easily right-align just one column in a GridView?

I have this


         


        
6条回答
  •  一向
    一向 (楼主)
    2021-01-02 02:22

    You can perform alignment within the Boundfield using ItemStyle-

    like this :

    
    

    This worked for me where i needed to align only specific columns in my gridview

提交回复
热议问题