2016-12-09 3 views

ответ

0

См это - ASPxGridView - How to set a custom display format for a column created at runtime

По умолчанию, вы можете использовать свойство GridViewDataDateColumn.PropertiesDateEdit.DateEditProperties.DisplayFormatString установить необходимый формат отображения.

Пример:

<dxwgv:GridViewDataTextColumn FieldName="UnitPrice" VisibleIndex="4"> 
     <PropertiesTextEdit DisplayFormatString="p" /> //Use either p or P as per your requiement        
</dxwgv:GridViewDataTextColumn> 

Ссылки:
ASPxGridView - Formatting column values
ASPxGridView - How to apply a custom display format to a grids cell
ASPxGridView - How to set the custom DisplayFormat for ASPxSummaryItem
ASPxGridView formatting string as currency

+0

Не работает .... –

+0

Обрабатывать событие CustomDisplayText там можно отображать текст, как вы хотеть. Ссылки ссылки показывают различный подход к реализации функциональности. Выберите тот, который поможет легко получить результаты. Вы проверили это - [строка форматирования ASPxGridView как валюта] (https://www.devexpress.com/Support/Center/Question/Details/Q481645) –

Смежные вопросы