Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Josefina Stanley   on Nov 24 In Asp.net Category.

  
Question Answered By: Adelinda Fischer   on Nov 24

First, you are not required to use the onItemDataBound event  to format
numbers instead use the DataFormatString


<columns>

<asp:BoundColumn DataField=myData
DataFormatString="#,##0.00" ItemStyle-HorizontalAlign="right" />

</columns>

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Datagrid Display - right align numbers Or get search suggestion and latest updates.


Tagged: