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
close icon

SfDataGrid sample data in design-time

Hi, 

I define the datacontext to be a custom instance on desing time as explained my the Microsoft documentation here  Design-Time Attributes in the Silverlight Designer | Microsoft Learn

<Grid d:DataContext="{d:DesignInstance Type=local:TestInDesign, IsDesignTimeCreatable=True}">

Then I have a ListView to test this 

<ListView ItemsSource="{Binding Persons}" Grid.Row="0">

            <ListView.ItemTemplate>

                <DataTemplate>

                    <StackPanel Orientation="Horizontal" Spacing="10">

                        <TextBlock Text="{Binding Firstname}" />

                        <TextBlock Text="{Binding Lastname}" />

                    </StackPanel>

                </DataTemplate>

            </ListView.ItemTemplate>

        </ListView>


Which is working well. 


But when I try with the SfDataGrid, that is not working 

<sfGrid:SfDataGrid Grid.Row="1"

            ItemsSource="{Binding Persons}"

/>


Is the SfDataGrid compatible with rows generation on design time ?


4 Replies

DM Dhanasekar Mohanraj Syncfusion Team October 10, 2022 04:32 AM

Hi Chris,

Currently, we are checking the reported issue on our end, and we need two more business days to validate this. We will update you with further details on October 11, 2022.

We appreciate your patience until then.

Regards,
Dhanasekar M.



DM Dhanasekar Mohanraj Syncfusion Team October 11, 2022 10:01 AM

Hi Chris,


Still, we are working on this. We will update you with further details on October 13, 2022.


We appreciate your patience and understanding.


Regards,

Dhanasekar M.



DM Dhanasekar Mohanraj Syncfusion Team October 13, 2022 09:00 AM

Hi Chris,


We regret to let you know that currently, our UWP SfDataGrid does not contain the support for design time attributes. We are checking the feasibility to implement this support in our SfDataGrid. We need two more business days to check this. We will update you with further details on October 17, 2022.


We appreciate your patience and understanding.


Regards,

Dhanasekar M.



DM Dhanasekar Mohanraj Syncfusion Team October 18, 2022 09:08 AM

Hi Chris,


As we mentioned earlier our UWP SfDataGrid does not contain support for design time attributes. Could you please share your exact requirement? Based on that we will check the possibilities to implement your requirement as a feature in our SfDataGrid.


Regards,

Dhanasekar M.


Loader.
Live Chat Icon For mobile
Up arrow icon