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
135
Formatting columns of winGrid
posted

Hi ,

I want to specify format for some of my columns in WinGrid. e.g. specifying "," as thousand seperator  for specific columns.How can I do that ?

 

Regards

Sudhir Gupta

  • 12773
    posted

    Hello,

    You can achieve this functionality by assign a UltraCurrencyEditor As default editor to the column that you want. The default setting of this editor will alow you to see the formating that ask.  See the sample below how to set the custom editor.
    UltraCurrencyEditor edit = new UltraCurrencyEditor();
    this.ultraGridData.DisplayLayout.Bands[0].Columns["0"].EditorControl = edit;
               
    You can also  specify additional formatting using the MaskInput of the UltraCurrencyEditor.

     I hope this is helpful for you scenario.

    Best regards,
    Dimi
    Developer Support Engineer
    Infragistics Inc.