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
1120
$ symbol when in edit mode
posted

Hi 

I am using the following code to set a editor to the column in grid

                EmbeddableEditorBase editor;

                DefaultEditorOwnerSettings editorSettings = new DefaultEditorOwnerSettings();

                editorSettings.DataType = typeof(decimal);

                editor = new EditorWithMask(new DefaultEditorOwner(editorSettings));

                editorSettings.Format = "Rs" + " ########0.00";

               ultraGridRow.Cells["MyColumn"].Editor = editor;

 

when a cell in MyColumn is not in edit mode it shows the value as RS 100, but when it is in edit mode it changes to $______100.00. 

My problem is I want to show "Rs" symbol even in edit mode. Can anyone tell me how to solve the above mentioned problem.

Thanks in advance

Navi

 

Parents
  • 69832
    Verified Answer
    Offline posted

    If "RS" happens to be the currency symbol for a particular culture, you can assign the corresponding CultureInfo to the UltraGridColumn's FormatInfo property. If it isn't, you can customize the mask that appears by setting the column's MaskInput property. The help topic for that property contains information on the mask tokens you can use.

Reply Children
No Data