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
1175
Enumeration and Grid Cell
posted
Hi I am using an enumeration to set the value of cell. the problem is that there are some values in the enumeration with underscore "_". I want a way that this underscore should not be there. How to hide it in grid? there is no combobox in the column so that we can set its value and dispalymember. it is a plain cell. Regards Asad Naeem
Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Asad,

    The easiest way would be to use a ValueList with ValueMember and DisplayMember. 

    Another way would be to use a DataFilter and handle the conversion from string to enum and vice versa in code. 

     

Reply Children
No Data