We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Using ValueList

Thread ID:

Created:

Updated:

Platform:

Replies:

128346 Jan 16,2017 10:30 AM Jan 17,2017 01:27 PM Xamarin.Forms 1
loading
Tags: SfDataGrid
Stefaan Avonds
Asked On January 16, 2017 10:30 AM

Hi everyone

I'm using a SfDataGrid to show all the records in a Database. Everything is working fine, except for the Guid-values; they are not shown. What I'm trying to achieve is that this Guid-value is converted using a ValueList.

For example: the table that is shown in the grid contains a Guid-value "IdUser" which references to a table with the Users for the application. When the grid is generated I want the Guid-value of "IdUser" to be converted to a property of the Users-table.

Is this possible to do?

P.S.: is this also possible with an integer-value to be converted to an enum-string?

Ashok N [Syncfusion]
Replied On January 17, 2017 01:27 PM

Hi Stefaan, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your query and based on your requirement you have to set the IdUser property is List<UsersTable> and you have to define the display values of that column by writing a converter for DisplayBinding. Please refer the below UG link for DisplayBinding Converter. 
 
 
Query regarding integer-value to be converted to an enum-string 
 
You can achieve your requirement by writing the Converter of the GridColumn.DisplayBinding to customize the cell content.  
 
If your requirement is defer for this, could you please share your sample along with replication procedure, that would be more helpful for further analyze. 
 
Regards, 
Ashok 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;