from:

http://www1.devexpress.com/Support/Center/p/Q130467.aspx

hi,
I am using a datagrid to display values. I have given mask as numeric and edit Mask and UseMaskAsDisplay properties as shown below:

dtvFilteredData.Columns[ "Movement %" ].ColumnEdit = new DevExpress.XtraEditors.Repository. RepositoryItemTextEdit ();

((DevExpress.XtraEditors.Repository. RepositoryItemTextEdit )dtvFilteredData.Columns[ "Movement %" ].ColumnEdit).Mask.MaskType = DevExpress.XtraEditors.Mask. MaskType .Numeric;

((DevExpress.XtraEditors.Repository. RepositoryItemTextEdit )dtvFilteredData.Columns[ "Movement %" ].ColumnEdit).Mask.EditMask = "#,##,##,##,##,##,##,##,##,##,##,##,##,##0.00" ;

((DevExpress.XtraEditors.Repository. RepositoryItemTextEdit )dtvFilteredData.Columns[ "Movement %" ].ColumnEdit).Mask.UseMaskAsDisplayFormat = true ;

But after displaying the values, when i click a particular cell, i want to edit its value. But at this time, the value in that particular cell (And not entire column)must show 6 decuimal places instead of 2 as indicated in the mask. So is it possible to give multiple masks for that column- one for normal mode and one when editing the cell value?

Waiting for your answer..its really urgent...

Thanks,
Regards,
Abi

相关文章:

  • 2021-11-14
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-12-06
  • 2021-10-07
猜你喜欢
  • 2021-12-06
  • 2021-08-17
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
相关资源
相似解决方案