Save code display description

If I want to save M and F in my database, but want to display Male and Female in the datagrid, which gridcolumn type should I use? Thank you.


3 Replies

MS Monisha Saravanan Syncfusion Team February 25, 2022 07:38 AM UTC

Hi Michael, 

Greetings from Syncfusion support. 

We have analyzed your query to display a column value in text & value pair and we can achieve this requirement in Syncfusion Grid component. Grid control support following column types. Before proceeding further with your query, kindly share us the below details for further assistance. 

  1. Kindly share the model class / column type of the column whether it is an Enum, Complex or ForeignKey column.  
  2. Share us the Grid code snippet.
  3. You can achieve your requirement using column template feature too
  4. If possible share us the issue reproduceable sample.

The provided information will help us to analyze the problem, and provide you a solution as early as possible. 

Regards, 
Monisha 



MT Michael Troulis February 25, 2022 08:33 PM UTC

I managed to get this to work using GridForeignColumn (although the sort and filter on this column are much slower now). Thanks for your help.



MS Monisha Saravanan Syncfusion Team February 28, 2022 08:21 AM UTC

Hi Michael, 

Thanks for the update. 

We are glad to hear that you have resolved your query on your own. Also you have mentioned that you are facing complexities while using sort and filter. If you need further assistance kindly share us more details about your query. We will be happy to assist you. 

Regards, 
Monisha 


Loader.
Up arrow icon