Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I have this:
<SfGrid DataSource="@View.TemplateDetailList" AllowPaging="true"> <GridPageSettings PageCount="5"></GridPageSettings> <GridColumns> <GridColumn Field=@nameof(View.TemplateDetail.ColumnName) HeaderText="Column Name" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Left" Width="120"></GridColumn> <GridColumn Field=@nameof(View.TemplateDetail.TemplateColumnType.Description) HeaderText="Type" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Left" Width="120"></GridColumn> </GridColumns> </SfGrid>
My query for the datasource is :
exec sp_executesql N'SELECT [t].[ColumnName], [t].[PropertyName], [t0].[TemplateColumnTypeIdent], [t0].[Description], [t0].[TypeCode], [t0].[TypeName]
FROM [dbo].[TemplateDetail] AS [t]
INNER JOIN [dbo].[TemplateColumnType] AS [t0] ON [t].[TemplateColumnTypeIdent] = [t0].[TemplateColumnTypeIdent]
WHERE [t].[TemplateMasterIdent] = @__value_0
ORDER BY [t].[SortSequence]',N'@__value_0 int',@__value_0=1
go
But, I get a null exception. If I comment out the second column then it works.
View.TemplateDetail.TemplateColumnType.Description does contain data.
Can you help me with this?