Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
Formatting column and EdittorProvider
posted

Hello,

I have two questions about formatting column.

1/ Percent format

    - I have a column needs format percent. I used DataFormatString="{0:P2}" for this column. When I enter "30.45" to a cell and exit edit mode, the cell displayed "3045.00%". I don't want this cell multiply to 100 auto.

2/ Currency editor

   - I have set DataFormatString="{0:C2}" and used CurrencyEditorProvider for this column. When load data, cell displayed "500$" but when I click to cell to edit, the cell displayed "0" and I can't get value of cell by client.

How to solve its?