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. Image for the cookie policy date

Foreign Key

Hey! I've got a grid that displays expenses created by users. It has many columns, one of them being "Created By"

I'm using Microsoft ASP.Net Users table and this is the code to my grid column:

<GridForeignColumn Field=@nameof(DespesaN.UserId)

                                   TextAlign="TextAlign.Center"

                                   HeaderText="Criado Por"

                                   ForeignKeyValue="UserName"

                                   ForeignDataSource="@allUsers"

                                   Width="150">

                    </GridForeignColumn>

I'd like to know why the grid doesn't display any info on this column but it does on similar ones. This one for example: 

<GridForeignColumn Field=@nameof(DespesaN.TipoDeDespesaId) TextAlign="TextAlign.Center"

                                   HeaderText="Tipo de Despesa"

                                   ForeignKeyValue="TipoDeDespesaDescription"

                                   ForeignDataSource="@tiposDeDespesa" Width="150">


                    </GridForeignColumn>


If anyone knows why, let me know! Thanks


1 Reply

NP Naveen Palanivel Syncfusion Team April 17, 2023 02:09 PM UTC

Hi Daniel ,


We have checked your query and before proceeding further with your requirement kindly share the below details to validate further at our end.


  1. Share us the entire code snippet of model class how it is defined in the grid.
  2. Share us the video demonstration of the issue with elaborately , it will more useful to us.
  3. If possible share us an simple issue reproduceable sample


The above-requested details will be very helpful for us to validate the reported query at our end and provide the solution as early as possible.



Regards,

Naveen Palanivel


Loader.
Up arrow icon